imaginable 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/imaginable/form_builder.rb +2 -1
- data/lib/imaginable/version.rb +1 -1
- metadata +3 -3
@@ -32,7 +32,8 @@ module Imaginable
|
|
32
32
|
image = @object.method("#{method_name}").call
|
33
33
|
end
|
34
34
|
|
35
|
-
options[:preview_width] ||= 50
|
35
|
+
options[:preview_width] ||= ( options[:preview_height].present? ? nil : 50 )
|
36
|
+
options[:preview_height] ||= ( options[:preview_width].present? ? nil : 50 )
|
36
37
|
dom_prefix = "#{@object_name}_#{@method_name}"
|
37
38
|
tag_text = content_tag('div', :id => "#{dom_prefix}_container", :class => "imaginable",
|
38
39
|
:'data-imaginable-prefix' => dom_prefix,
|
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: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Dippel
|