acts_as_inheritable 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_inheritable/version.rb +1 -1
- data/lib/acts_as_inheritable.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: 2b1041cc8ec082ae65cf0b6c89252e2298bd24bd
|
4
|
+
data.tar.gz: 77d74d6cdcba7e5f40239ae9e361536d18778feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a2fe15e1ce0aefb9a44bf9528de5055caa03dc4112a103cadcaabaebf12e69518c3ba484c1c5db9191d5b431c4b898a26c579c8cc4cff248a9e6eb401ce0ed4
|
7
|
+
data.tar.gz: db0ae6bfb76bd7fcf4c0f3308b77dc0ae80798ff1ed22af9f888dd61f0b5b7c3f104def94d576a72b9b756d50a71c8f85511181afa1b1e16d0027a8623439d4f
|
data/lib/acts_as_inheritable.rb
CHANGED
@@ -4,7 +4,7 @@ require "acts_as_inheritable/version"
|
|
4
4
|
module ActsAsInheritable
|
5
5
|
def acts_as_inheritable(options)
|
6
6
|
raise ArgumentError, "Hash expected, got #{options.class.name}" if !options.is_a?(Hash)
|
7
|
-
raise ArgumentError, "Empty options" if options[:attributes].
|
7
|
+
raise ArgumentError, "Empty options" if options[:attributes].blank? && options[:associations].blank?
|
8
8
|
|
9
9
|
class_attribute :inheritable_configuration
|
10
10
|
|