Forum: Ruby on Rails RE: Form helpers and overloaded methods - help!

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Hogan, Brian P. (Guest)
on 2006-03-01 23:45
(Received via mailing list)
Well, here's the code that makes the form tags look at the database
directly. Is there a reason why I shouldn't comment out these lines
below? Basically, I'm asking the core team why they decided to look at
the database first.

module ActionView
  module Helpers
      class InstanceTag

          def value_before_type_cast
            unless object.nil?
            #  object.respond_to?(@method_name + "_before_type_cast") ?
            #  object.send(@method_name + "_before_type_cast") :
                object.send(@method_name)
            end

        end
    end
end
This topic is locked and can not be replied to.