aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-01-09 13:35:38 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2011-01-09 13:35:38 -0200
commit14198d84a90fdf7122c47367485148c52e45053e (patch)
tree9a1ba7416a0ac1e87dd813e8ed165f738865e423 /actionpack
parent12f5158f098cdc714e826bfb0d3f722a1e9753c8 (diff)
downloadrails-14198d84a90fdf7122c47367485148c52e45053e.tar.gz
rails-14198d84a90fdf7122c47367485148c52e45053e.tar.bz2
rails-14198d84a90fdf7122c47367485148c52e45053e.zip
Remove InstanceTagMethods module and define the methods inside the InstanceTag class
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 6f0e2c99ba..d7b9e0b4f4 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -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