Flowdock
method

value_before_type_cast

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: Base
value_before_type_cast(object) 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 44
          def value_before_type_cast(object)
            unless object.nil?
              method_before_type_cast = @method_name + "_before_type_cast"

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