method

value

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Attribute
value() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/attribute.rb, line 40
    def value
      # `defined?` is cheaper than `||=` when we get back falsy values
      @value = type_cast(value_before_type_cast) unless defined?(@value)
      @value
    end
Register or log in to add new notes.