polyblock 0.2.8 → 0.2.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c0e5df24a831d9c107be60bebcb62c130123b03
4
- data.tar.gz: cea15360003f70fe2d90b7d559848e8ee64275b9
3
+ metadata.gz: 57939a6dd8dd27804e25fc87a4898bd688a75115
4
+ data.tar.gz: de357d1ea6c45b30f806e37e45b4684301905a18
5
5
  SHA512:
6
- metadata.gz: 73720b0093658929cdf9323e9d4ae7e3aa330d6b757f6b994f99afec1051161f20664575699c0905ca23800dea2a0e7a34fbfab5b2cda27cfbc4dbe5b2e151c4
7
- data.tar.gz: 9bc62121229ea567c0ff9b4f73205e9ccd08c6cf2ccce45b5e3858ffcda0675adf64c6b4a366f930f05201f379e03404d1a8bf271d01c4fcb0f635ec88b127c8
6
+ metadata.gz: b5edcbdf9b7741d4adba36dd3b69a498e5f4fe7b434d15e3e48ba47cfd2008996e320eb9784a241b4c5d6f0b887074908e849f2115713b4bde1844ed5a13b7c9
7
+ data.tar.gz: 64db9cd2b99b9aa59ed54a6ad856a538856cf83d34114f7376eb2de60f68fbaa2f8703c5c8df17156a06a33f320a61d8530aeaf1a5074926a290c338ff8b7a3f
@@ -41,7 +41,8 @@ module Polyblock
41
41
 
42
42
  def simple_fields_for_polyblock(name, f, options={})
43
43
  options = {
44
- :label => false
44
+ :label => false,
45
+ :input_html => {}
45
46
  }.merge(options)
46
47
  render :partial => "polyblock/simple_fields_for", :locals => {:f => f, :name => name, :options => options}
47
48
  end
@@ -1,6 +1,6 @@
1
1
  = f.simple_fields_for name do |ff|
2
2
  = ff.input_field :name, :as => :hidden, :value => name.to_s
3
3
  - if !options[:label]
4
- = ff.input_field :content, :as => :ckeditor
4
+ = ff.input_field :content, options[:input_html].merge({:as => :ckeditor})
5
5
  - else
6
- = ff.input :content, :as => :ckeditor, :label => options[:label].is_a?(String) ? options[:label] : name.to_s.titleize
6
+ = ff.input :content, :as => :ckeditor, :label => options[:label].is_a?(String) ? options[:label] : name.to_s.titleize, :input_html => options[:input_html]
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-09 00:00:00.000000000 Z
11
+ date: 2014-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails