icon_links 0.2.2 → 0.2.3
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/icon_links/method_missing.rb +7 -6
- data/lib/icon_links.rb +5 -1
- metadata +3 -3
@@ -174,9 +174,10 @@ module IconLinks
|
|
174
174
|
end
|
175
175
|
|
176
176
|
# Override Rails CDATA JS wrapper because it kills AJAX requests (doh!)
|
177
|
-
module ActionView::Helpers::JavaScriptHelper
|
178
|
-
def javascript_tag(content, html_options = {})
|
179
|
-
content_tag("script", content,
|
180
|
-
html_options.merge(:type => "text/javascript"))
|
181
|
-
end
|
182
|
-
end
|
177
|
+
#module ActionView::Helpers::JavaScriptHelper
|
178
|
+
# def javascript_tag(content, html_options = {})
|
179
|
+
# content_tag("script", content,
|
180
|
+
# html_options.merge(:type => "text/javascript"))
|
181
|
+
# end
|
182
|
+
#end
|
183
|
+
|
data/lib/icon_links.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# IconLinks
|
2
2
|
require 'active_support/core_ext/module/attribute_accessors'
|
3
|
+
|
3
4
|
module IconLinks
|
4
5
|
# Relative path to the icons
|
5
6
|
mattr_accessor :icon_image_url
|
@@ -28,4 +29,7 @@ module IconLinks
|
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
31
|
-
|
32
|
+
require 'icon_links/view_helpers'
|
33
|
+
require 'icon_links/method_missing'
|
34
|
+
|
35
|
+
ActionView::Base.send :include, IconLinks if defined?(ActionView::Base)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 3
|
9
|
+
version: 0.2.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nate Wiger
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: "2.3"
|
31
31
|
type: :runtime
|
32
32
|
version_requirements: *id001
|
33
|
-
description: Easily replace boring Rails text links with sexy icons.
|
33
|
+
description: Easily replace boring Rails text links with sexy icons. Provides handy icon_to helpers.
|
34
34
|
email: nate@wiger.org
|
35
35
|
executables: []
|
36
36
|
|