polyblock 0.4.5 → 0.4.6
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 +4 -4
- data/app/helpers/polyblock/application_helper.rb +1 -0
- data/app/models/polyblock/block.rb +2 -2
- data/lib/polyblock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42747cfbd46df2c15e5ca45e18e30b2892f3812f
|
|
4
|
+
data.tar.gz: 11830645c53a9f3b99ecdba1ae1c6df39d968aea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e22778c2477ba6f63847a81482c9441f6da11e40a86a29e54ab6752c6fb361cf5d60e3251c17028b807e2a201f3c488eea49e46cebe06f13c00142af38ededb
|
|
7
|
+
data.tar.gz: a7cc3b2e8dde9476a6edb9a339e952654f8b751a58b5341b5a5a12df9adac06d2db5e01a0e5c2f1022a620fb5fba09f33c625e652107c97a0cd07bfc6991a3fb
|
|
@@ -54,6 +54,7 @@ module Polyblock
|
|
|
54
54
|
else
|
|
55
55
|
"false"
|
|
56
56
|
end
|
|
57
|
+
tag_options.delete(:contenteditable) if tag_options[:contenteditable] == "false"
|
|
57
58
|
tag_options[:class] = (tag_options.has_key?(:class) ? "#{tag_options[:class]} ":"") + "polyblock"
|
|
58
59
|
tag_options[:data][:pb_exists] = pb_exists
|
|
59
60
|
|
|
@@ -6,7 +6,7 @@ module Polyblock
|
|
|
6
6
|
belongs_to :contentable, :polymorphic => true, :dependent => :destroy
|
|
7
7
|
|
|
8
8
|
def self.import(pbs)
|
|
9
|
-
pbs.each{|pb| Block.create
|
|
9
|
+
pbs.each{|pb| Block.create(pb) }
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def self.export
|
|
@@ -14,7 +14,7 @@ module Polyblock
|
|
|
14
14
|
puts ""
|
|
15
15
|
puts "Run the following in Rails Console on the remote server:"
|
|
16
16
|
puts ""
|
|
17
|
-
puts "Polyblock.import(#{output})"
|
|
17
|
+
puts "Polyblock::Block.import(#{output})"
|
|
18
18
|
puts ""
|
|
19
19
|
end
|
|
20
20
|
|
data/lib/polyblock/version.rb
CHANGED