method

value_before_type_cast

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: UserProvidedDefault
value_before_type_cast() 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/user_provided_default.rb, line 17
      def value_before_type_cast
        if user_provided_value.is_a?(Proc)
          @memoized_value_before_type_cast ||= user_provided_value.call
        else
          @user_provided_value
        end
      end
Register or log in to add new notes.