polyblock 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/polyblock/block.rb +1 -1
- data/lib/polyblock/has_polyblock.rb +1 -1
- 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: 0e9c80813939f43e45ab12628693341c83fd727b
|
4
|
+
data.tar.gz: 785940216a5cbfb110d343a92acae27b3f1b98c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807464d2de415afaa6ab3ef0ce7ff8f4b1c308a2a46387a1c2d5f8d1ed09009d0863920d0af7a63097f9b3a9c04e78188c0708d39f4da6e785c7036abf4cb314
|
7
|
+
data.tar.gz: 51c04cddf1c1e6a6bb0797297a6b365a24f6d1c9e078ab56ee6eab29d6946d02dc67fe3e86af5287d4a1a5d1d0c0602edb86e76086b5f8bf4123609691686a43
|
@@ -7,7 +7,7 @@ module Polyblock
|
|
7
7
|
|
8
8
|
module ClassMethods
|
9
9
|
def has_polyblock(name, options={})
|
10
|
-
defaults = {:class_name => "Polyblock::Block", :as => :contentable}
|
10
|
+
defaults = {:class_name => "Polyblock::Block", :as => :contentable, :dependent => :destroy}
|
11
11
|
has_one name, -> { where(:name => name) }, defaults.merge(options)
|
12
12
|
accepts_nested_attributes_for name
|
13
13
|
include Polyblock::HasPolyblock::LocalInstanceMethods
|
data/lib/polyblock/version.rb
CHANGED