polyblock 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/polyblock/has_polyblock.rb +2 -2
- data/lib/polyblock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcf7f2596688a81fd5a08c97a237f43be4bb80c5
|
4
|
+
data.tar.gz: 96adb94234445ca164286b352b9598aeaaa99979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f60fd4033a0db11301798229cd3966f52afd111c3199c300e2ea2836a7a948fa7ba853a8bcf116cfb66268e47d54d22fce51f5e47d858ed1d205acff4171467
|
7
|
+
data.tar.gz: 9db39a46d91fb8a87bf545822492916319d1e0f7f497c21e2052b3578630b855584bc14938d6d6e8eb6f1f9a9b42b07a95c294171ccbca574ece4ed567ef443d
|
@@ -7,8 +7,8 @@ module Polyblock
|
|
7
7
|
|
8
8
|
module ClassMethods
|
9
9
|
def has_polyblock(name, options={})
|
10
|
-
defaults = {:class_name => "Polyblock::Block", :as => :contentable
|
11
|
-
has_one name, defaults.merge(options)
|
10
|
+
defaults = {:class_name => "Polyblock::Block", :as => :contentable}
|
11
|
+
has_one name, -> { where(:name => name) }, defaults.merge(options)
|
12
12
|
accepts_nested_attributes_for name
|
13
13
|
include Polyblock::HasPolyblock::LocalInstanceMethods
|
14
14
|
end
|
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.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MacKinley Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|