smart_tag 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  module SmartTag
2
2
  module Helper
3
3
 
4
- # def tadding_tag(name, content = nil, options = {})
5
- # id = sanitize_to_id(name)
6
- # input_html = { :id => id }.merge(options.delete(:input_html) || {})
7
- # output = ActiveSupport::SafeBuffer.new
8
- # output << text_area_tag(name, content, input_html)
9
- # end
4
+ def smart_tag(name, content = nil, options = {})
5
+ id = sanitize_to_id(name)
6
+ input_html = { :id => id }.merge(options.delete(:input_html) || {})
7
+ output = ActiveSupport::SafeBuffer.new
8
+ output << text_area_tag(name, content, input_html)
9
+ end
10
10
 
11
- def smart_tag(name, method, options = {})
11
+ def tag(name, method, options = {})
12
12
  input_html = (options.delete(:input_html) || {})
13
13
  hash = input_html.stringify_keys
14
14
  instance_tag = ActionView::Base::InstanceTag.new(name, method, self, options.delete(:object))
@@ -20,8 +20,8 @@ module SmartTag
20
20
  end
21
21
 
22
22
  module Builder
23
- def smart_tag(method, options = {})
24
- @template.send("smart_tag", @object_name, method, objectify_options(options))
23
+ def tag(method, options = {})
24
+ @template.send("tag", @object_name, method, objectify_options(options))
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module SmartTag
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
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.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: