smart_tag 0.0.8 → 0.0.9
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.
- data/lib/smart_tag/helper.rb +9 -9
- data/lib/smart_tag/version.rb +1 -1
- metadata +1 -1
data/lib/smart_tag/helper.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
module SmartTag
|
2
2
|
module Helper
|
3
3
|
|
4
|
-
def
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
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
|
10
10
|
|
11
|
-
def
|
11
|
+
def smart_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
|
24
|
-
@template.send("
|
23
|
+
def smart_tag(method, options = {})
|
24
|
+
@template.send("smart_tag", @object_name, method, objectify_options(options))
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/lib/smart_tag/version.rb
CHANGED