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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b693da4f8559a7407f7b2866c99a8402ea7e3ba2
4
- data.tar.gz: ef3151efe1acfaaffdaf6e9940f9e8d51b70b49e
3
+ metadata.gz: 2b1041cc8ec082ae65cf0b6c89252e2298bd24bd
4
+ data.tar.gz: 77d74d6cdcba7e5f40239ae9e361536d18778feb
5
5
  SHA512:
6
- metadata.gz: df870e77bd98182b3af7612b04a8d1472f20f808d7d7318f6109fdc49ae3590d528028d84818db90aae0d6f1884460ae3feaadd0abc738275239cac0f6e555ec
7
- data.tar.gz: 19c420c7f42d610d440b70b32c68d97a17a5ff16fe5d4cc9dd4495a00fb82be4bc54eca1eeb79d357e5f5565f9f51f7d78fbe7fa807a6356bd86dab51d954509
6
+ metadata.gz: 3a2fe15e1ce0aefb9a44bf9528de5055caa03dc4112a103cadcaabaebf12e69518c3ba484c1c5db9191d5b431c4b898a26c579c8cc4cff248a9e6eb401ce0ed4
7
+ data.tar.gz: db0ae6bfb76bd7fcf4c0f3308b77dc0ae80798ff1ed22af9f888dd61f0b5b7c3f104def94d576a72b9b756d50a71c8f85511181afa1b1e16d0027a8623439d4f
@@ -1,3 +1,3 @@
1
1
  module ActsAsInheritable
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -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].empty? && options[:associations].empty?
7
+ raise ArgumentError, "Empty options" if options[:attributes].blank? && options[:associations].blank?
8
8
 
9
9
  class_attribute :inheritable_configuration
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_inheritable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esteban Arango Medina