imaginable 0.0.4 → 0.0.5
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/imaginable/helpers.rb +10 -0
- data/lib/imaginable/railtie.rb +2 -0
- data/lib/imaginable/version.rb +1 -1
- metadata +4 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module Imaginable
|
|
2
|
+
module Helpers
|
|
3
|
+
|
|
4
|
+
def imaginable_includes_tag
|
|
5
|
+
html = stylesheet_link_tag('fancybox/jquery.fancybox-1.3.4', 'imgareaselect/imgareaselect-animated', 'imaginable')
|
|
6
|
+
html << javascript_include_tag('plupload.full.min', 'jquery.fancybox-1.3.4.pack', 'jquery.imgareaselect.pack', 'imaginable')
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
end
|
|
10
|
+
end
|
data/lib/imaginable/railtie.rb
CHANGED
|
@@ -16,6 +16,8 @@ module Imaginable
|
|
|
16
16
|
|
|
17
17
|
ActiveSupport.on_load(:action_view) do
|
|
18
18
|
require 'imaginable/form_builder'
|
|
19
|
+
require 'imaginable/helpers'
|
|
20
|
+
::ActionView::Base.send(:include, Imaginable::Helpers)
|
|
19
21
|
::ActionView::Helpers::FormBuilder.send(:include, Imaginable::FormBuilder)
|
|
20
22
|
::ActionView::Helpers::InstanceTag.send(:include, Imaginable::InstanceTag)
|
|
21
23
|
end
|
data/lib/imaginable/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: imaginable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Thomas Dippel
|
|
@@ -103,6 +103,7 @@ files:
|
|
|
103
103
|
- lib/generators/templates/stylesheets/overlay.png
|
|
104
104
|
- lib/imaginable.rb
|
|
105
105
|
- lib/imaginable/form_builder.rb
|
|
106
|
+
- lib/imaginable/helpers.rb
|
|
106
107
|
- lib/imaginable/image.rb
|
|
107
108
|
- lib/imaginable/model.rb
|
|
108
109
|
- lib/imaginable/railtie.rb
|