polyblock 0.2.5 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf795527cd8c2f57cdd7be6e82fe1a5c72585299
4
- data.tar.gz: 29b76f9999e82b9e409a49a80078334b1d9320b7
3
+ metadata.gz: e40e428d63eae1bd65f7506d26b15c06ec686ba5
4
+ data.tar.gz: 4e6e904c4f6eed92a4c3dc6f1e50c6e06bda659b
5
5
  SHA512:
6
- metadata.gz: 89df32f957ba26e77b74f22dcfef9a9796967616258f4eb16d413bb3625fff719414092eaeea084e683a4c347f0baceb3c98f153453fc7de7982e00b3180893e
7
- data.tar.gz: b2c6597701c1e0a8caf39e31129b1b9aae5468a9890a2949ccd969e384cf8a1b387fd5759362639bbc607be89224604ad8ffb478be5639d945195d3457ec87b8
6
+ metadata.gz: 464780fbf2e0292d0d08d25012acc611be8e6d427c2f6a21971a9400de877a5659bb1703233640e95e7d477de18d15bf8fa8a6e7e10ea91fda415f8cece54eaa
7
+ data.tar.gz: d89cd1a47c1bee418eff4d5efcbb6525b6cc46f9c838881e3e66b0f1ae7f67e827bb001d1cd6f43a0bf1c329afcb997bf76c0aaa4f31bc27248261418f364a99
@@ -39,8 +39,11 @@ module Polyblock
39
39
  content_tag(options[:tag], content, tag_options, false)
40
40
  end
41
41
 
42
- def simple_fields_for_polyblock(name, f)
43
- render :partial => "polyblock/simple_fields_for", :locals => {:f => f, :name => name}
42
+ def simple_fields_for_polyblock(name, f, options={})
43
+ options = {
44
+ :label => false
45
+ }.merge(options)
46
+ render :partial => "polyblock/simple_fields_for", :locals => {:f => f, :name => name, :options => options}
44
47
  end
45
48
 
46
49
  end
@@ -1,3 +1,6 @@
1
1
  = f.simple_fields_for name do |ff|
2
2
  = ff.input_field :name, :as => :hidden, :value => name.to_s
3
- = ff.input_field :content, :as => :ckeditor, :style => "margin-bottom:15px;"
3
+ - if !options[:label]
4
+ = ff.input_field :content, :as => :ckeditor
5
+ - else
6
+ = ff.input :content, :as => :ckeditor, :label => options[:label].is_a?(String) ? options[:label] : name.titleize
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith