activemodel_flags 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/activemodel_flags/has_flags.rb +1 -0
- data/lib/activemodel_flags/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: d1e1bded5e5954620eb9b8f3ffb1e383eda9f22a
|
|
4
|
+
data.tar.gz: fcfb03822648efd517a2d0094700b746c937d528
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ee4140d324b8cbd4d5c3696995e4f0ac942ed8ba2d966f91d5a00b40dbd354ee55359bbca3ca1521cfacea9ae1ce40d8f4a37d979af039f2d4e3ae4390b52f9
|
|
7
|
+
data.tar.gz: 503dc08d6f6a6b50fb50929356d2015d9a59c235fd75114f3575a64ba8b0bfb16c5c454aeb344606fecbcfc01a515955a5030d6790adee0c8a5c657ea13131f0
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
The Active Model Flags Gem lets you attach the `has_flags` trait to your User, Account, or any other rails active models.
|
|
6
6
|
|
|
7
7
|
## Why would you need a flags attribute and this gem?
|
|
8
|
-
For some applications you don't want
|
|
8
|
+
For some applications you don't want to add a million different attributes in your database for flags that are potentially one-time events. For example, if you wanted to track whether a user has been notified of something, or has been sent an email. These arbitrary flag columns start to clutter your DB.
|
|
9
9
|
|
|
10
10
|
The Active Model Flags gem solves this issue by allowing you to arbitrarily set and get flags from a serialized column.
|
|
11
11
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activemodel_flags
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jay El-Kaake
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|