imaginable 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Imaginable
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
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