1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove InstanceTagMethods module and define the methods inside the InstanceTag class

This commit is contained in:
Santiago Pastorino 2011-01-09 13:35:38 -02:00
parent 12f5158f09
commit 14198d84a9

View file

@ -858,8 +858,7 @@ module ActionView
end
end
module InstanceTagMethods #:nodoc:
extend ActiveSupport::Concern
class InstanceTag
include Helpers::CaptureHelper, Context, Helpers::TagHelper, Helpers::FormTagHelper
attr_reader :object, :method_name, :object_name
@ -1025,7 +1024,7 @@ module ActionView
self.class.value_before_type_cast(object, @method_name)
end
module ClassMethods
class << self
def value(object, method_name)
object.send method_name if object
end
@ -1111,10 +1110,6 @@ module ActionView
end
end
class InstanceTag
include InstanceTagMethods
end
class FormBuilder
# The methods which wrap a form helper call.
class_attribute :field_helpers