active_enum 0.9.11 → 0.9.12
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.
- data/CHANGELOG +3 -0
- data/README.rdoc +5 -1
- data/lib/active_enum/version.rb +1 -1
- data/lib/generators/active_enum/templates/config.rb +2 -2
- metadata +6 -6
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
|
@@ -198,7 +198,11 @@ There is support for Formtastic[http://github.com/justinfrench/formtastic] and S
|
|
|
198
198
|
to make it easier to use the enum values as select options. The plugins have an almost identical API which is handy.
|
|
199
199
|
You just need to require the extension for the respective plugin in an initialiser:
|
|
200
200
|
|
|
201
|
-
Formtastic:
|
|
201
|
+
Formtastic 2.x:
|
|
202
|
+
|
|
203
|
+
require 'active_enum/form_helpers/formtastic2'
|
|
204
|
+
|
|
205
|
+
Formtastic <2:
|
|
202
206
|
|
|
203
207
|
require 'active_enum/form_helpers/formtastic'
|
|
204
208
|
|
data/lib/active_enum/version.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Form helper integration
|
|
2
|
-
# require 'active_enum/form_helpers/
|
|
3
|
-
# require 'active_enum/form_helpers/
|
|
2
|
+
# require 'active_enum/form_helpers/formtastic' # for Formtastic <2
|
|
3
|
+
# require 'active_enum/form_helpers/formtastic2' # for Formtastic 2.x
|
|
4
4
|
|
|
5
5
|
ActiveEnum.setup do |config|
|
|
6
6
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_enum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 35
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 9
|
|
9
|
-
-
|
|
10
|
-
version: 0.9.
|
|
9
|
+
- 12
|
|
10
|
+
version: 0.9.12
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Adam Meehan
|
|
@@ -15,10 +15,12 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-
|
|
18
|
+
date: 2012-09-11 00:00:00 +10:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
22
|
+
name: activesupport
|
|
23
|
+
prerelease: false
|
|
22
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
23
25
|
none: false
|
|
24
26
|
requirements:
|
|
@@ -29,8 +31,6 @@ dependencies:
|
|
|
29
31
|
- 3
|
|
30
32
|
- 0
|
|
31
33
|
version: "3.0"
|
|
32
|
-
name: activesupport
|
|
33
|
-
prerelease: false
|
|
34
34
|
type: :runtime
|
|
35
35
|
version_requirements: *id001
|
|
36
36
|
description: Define enum classes in Rails and use them to enumerate ActiveRecord attributes
|