smart_tag 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,20 +8,22 @@ module SmartTag
8
8
  # output << text_area_tag(name, content, input_html)
9
9
  # end
10
10
 
11
- def smart_tag(name, method, options = {})
12
- input_html = (options.delete(:input_html) || {})
13
- hash = input_html.stringify_keys
14
- instance_tag = ActionView::Base::FormBuilder.new(name, method, self, options.delete(:object))
15
- instance_tag.send(:add_default_name_and_id, hash)
16
- output_buffer = ActiveSupport::SafeBuffer.new
17
- output_buffer << instance_tag.to_text_area_tag(input_html)
11
+ def smart_tag(name)
12
+ name
13
+ # input_html = (options.delete(:input_html) || {})
14
+ # hash = input_html.stringify_keys
15
+ # instance_tag = ActionView::Base::FormBuilder.new(name, method, self, options.delete(:object))
16
+ # instance_tag.send(:add_default_name_and_id, hash)
17
+ # output_buffer = ActiveSupport::SafeBuffer.new
18
+ # output_buffer << instance_tag.to_text_area_tag(input_html)
19
+
18
20
  end
19
21
 
20
22
  end
21
23
 
22
- module Builder
23
- def smart_tag(method, options = {})
24
- @template.send("smart_tag", @object_name, method, objectify_options(options))
25
- end
26
- end
24
+ # module Builder
25
+ # def smart_tag(method, options = {})
26
+ # @template.send("smart_tag", @object_name, method, objectify_options(options))
27
+ # end
28
+ # end
27
29
  end
@@ -1,3 +1,3 @@
1
1
  module SmartTag
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: