smart_tag 0.4.1 → 0.4.2
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 +14 -12
- data/lib/smart_tag/version.rb +1 -1
- metadata +1 -1
data/lib/smart_tag/helper.rb
CHANGED
@@ -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
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
instance_tag.
|
16
|
-
|
17
|
-
output_buffer
|
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
|
-
|
24
|
-
|
25
|
-
|
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
|
data/lib/smart_tag/version.rb
CHANGED