Permalink
Browse files

Remove InstanceTagMethods module and define the methods inside the In…

…stanceTag class
  • Loading branch information...
1 parent 12f5158 commit 14198d84a90fdf7122c47367485148c52e45053e @spastorino spastorino committed Jan 9, 2011
Showing with 2 additions and 7 deletions.
  1. +2 −7 actionpack/lib/action_view/helpers/form_helper.rb
@@ -858,8 +858,7 @@ def instantiate_builder(record, record_object = nil, options = nil, &block)
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 @@ def value_before_type_cast(object)
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 @@ def sanitized_method_name
end
end
- class InstanceTag
- include InstanceTagMethods
- end
-
class FormBuilder
# The methods which wrap a form helper call.
class_attribute :field_helpers

0 comments on commit 14198d8

Please sign in to comment.