Flowdock
method

value_before_type_cast

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Base
value_before_type_cast() private

No documentation

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

Hide source
# File actionview/lib/action_view/helpers/tags/base.rb, line 45
          def value_before_type_cast
            unless object.nil?
              method_before_type_cast = @method_name + "_before_type_cast"

              if value_came_from_user? && object.respond_to?(method_before_type_cast)
                object.public_send(method_before_type_cast)
              else
                value
              end
            end
          end
Register or log in to add new notes.