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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb2ad2f498dd2499e122d042d2198742f36428a4
|
4
|
+
data.tar.gz: 1fc8f7a2ba068d74cbca90f23d46bfa575f7b1d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
29
|
-
The feature limit of #{limit} has been reached.
|
30
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|