polyblock 0.3.2 → 0.3.3

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: 21a692470d1350ca6dd6b68ce45313f43d753c66
4
- data.tar.gz: 4e4fa9f06f01c46bf8f3ad98de430fcf1974caa2
3
+ metadata.gz: 27aeb630a9127e2fead39331c1bf6b2a3c0fc5d5
4
+ data.tar.gz: c1c7040117197373034137d871eb1b128893ba8d
5
5
  SHA512:
6
- metadata.gz: b8b4994a2488cd7e7d7d193fa0c9c8ab8beee99b667603e10736f427f41af96a815b2d0b3063ce9b78d518c20d83bd008693285571cb5a62a55c6dbb7bc9dd3c
7
- data.tar.gz: de796291fa0eafbad3c7d0dcd689c4b0d09aa560b3a9f2181e08015df2c5467d8222ffdc73d40b9b3fb5bf5d6852e93e2d0e28924c7f9f5b5e85b0f56a312d89
6
+ metadata.gz: c6c5c178a314336d52048d55b81a26f9e44ac8254663ef7a26fa324e105ebcf403d68ad0a601a309cc37514d167c95704083654276313de2a35465c7c1b78f74
7
+ data.tar.gz: 6c459f102065a3cd910c2857889364449f5208cad89659da111dcb108cdb7fc5b9aa7f6109c0045e267af5994f1fa357bf44b298fcdb12eb67e00fa56296de51
@@ -20,12 +20,13 @@ module Polyblock
20
20
  matches = Polyblock::Block.where :name => name
21
21
  pb_exists = matches.any?
22
22
  pb = pb_exists ? matches.first : Polyblock::Block.new({:name => name})
23
- pb_id = if pb_exists
24
- pb.id
25
- else
26
- nextId = Polyblock::Block.count + 1
27
- nextId += 1 while Polyblock::Block.where(:id => nextId).any?
28
- end
23
+ if pb_exists
24
+ pb_id = pb.id
25
+ else
26
+ nextId = Polyblock::Block.count + 1
27
+ nextId += 1 while Polyblock::Block.where(:id => nextId).any?
28
+ pb_id = nextId
29
+ end
29
30
  end
30
31
 
31
32
  # Build output tag
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -3,6 +3,9 @@
3
3
  %h3 Polyblock with Inline Editing
4
4
  = pb("Test")
5
5
 
6
+ %h3 New Polyblock
7
+ = pb "New"
8
+
6
9
  %h3 Polyblock SimpleForm
7
10
  = simple_form_for @event do |f|
8
11
  = f.input :title
Binary file