README.md in enum_help-0.0.16 vs README.md in enum_help-0.0.17
- old
+ new
@@ -15,11 +15,11 @@
enums:
foo/bar/baz:
abc:
lorem: 'Ipsum'
foo/bar/bat:
- abc:
+ def:
lorem: 'Ipsum'
To
enums:
@@ -27,11 +27,11 @@
bar:
baz:
abc:
lorem: 'Ipsum'
bat:
- abc:
+ def:
lorem: 'Ipsum'
For different I18n backends, adjust accordingly as namespaced modules are now referenced by `.` rather than `/`.
## Installation
@@ -56,10 +56,10 @@
In model file:
```ruby
class Order < ActiveRecord::Base
enum status: { "nopayment" => 0, "finished" => 1, "failed" => 2, "destroyed" => 3 }
-
+
def self.restricted_statuses
statuses.except :failed, :destroyed
end
end
```