acts_as_featureable 0.0.5 → 0.0.6

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: a1c0cdf6309ae0836e18edfb9742197cc7ea628a
4
- data.tar.gz: 6edbf03bd554f3c6c894324bc2314888705669a1
3
+ metadata.gz: fb2ad2f498dd2499e122d042d2198742f36428a4
4
+ data.tar.gz: 1fc8f7a2ba068d74cbca90f23d46bfa575f7b1d2
5
5
  SHA512:
6
- metadata.gz: 1527625d470e781d74f7b81e0a0b0b2203f6081f3d700330a5bffebb96b8fa86d19c043cbdd9b5670a5ce69b627d1032e7fb942d2dafe5ef497656331653360a
7
- data.tar.gz: 092b08a35528f603d2a480cd63ad10451a691f23fd4aeb06c2ec071d30e45653cfdb1690b414bcdd68a68482591a4201eaf3b33e797ff377d9505e87db46884f
6
+ metadata.gz: e3d613ae020a74cc950555683294280e1128250fdf2ef59bc3f345344ef65d93c135be263b1c665cda1f50d5e85544a13b49c614bc811874da2fc63f2fa46653
7
+ data.tar.gz: 7d67b8c7ffb3fc5600fe3a85cecd5a3e4b93e055364b640738aadd405f41584360c64ee66e6890397269b77e0c38df3e792403f30d9fefff16e68064359485e0
@@ -25,10 +25,9 @@ module ActsAsFeatureable
25
25
 
26
26
  def feature_limit_not_reached
27
27
  limit = ActsAsFeatureable.feature_limit
28
- errors.add(:base, %q{
29
- The feature limit of #{limit} has been reached. \
30
- Please delete or change an existing feature.
31
- }) if ActsAsFeatureable.categories ? Feature.where(category: self.category).count >= limit : Feature.count >= limit
28
+ errors.add(:base,
29
+ "The feature limit of #{limit} has been reached. Please delete or change an existing feature.") if
30
+ ActsAsFeatureable.categories ? Feature.where(category: self.category).count >= limit : Feature.count >= limit
32
31
  end
33
32
 
34
33
  def assign_title
@@ -1,3 +1,3 @@
1
1
  module ActsAsFeatureable
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_featureable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kainage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-10 00:00:00.000000000 Z
11
+ date: 2013-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails