polyblock 0.2.8 → 0.2.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57939a6dd8dd27804e25fc87a4898bd688a75115
|
4
|
+
data.tar.gz: de357d1ea6c45b30f806e37e45b4684301905a18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
data/lib/polyblock/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|