Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed README section on using outside ActiveRecord

This section was redundant now that there is another section discussing
the enumerable functionality.
  • Loading branch information...
commit 5d5b6c47a737fb9599c509341aabef3ed1a2c714 1 parent 6fd8e7d
@beerlington beerlington authored
Showing with 0 additions and 14 deletions.
  1. +0 −14 README.md
View
14 README.md
@@ -13,7 +13,6 @@ ClassyEnum is a Ruby on Rails gem that adds class-based enumerator functionality
* [Serializing as JSON](https://github.com/beerlington/classy_enum#serializing-as-json)
* [Special Cases](https://github.com/beerlington/classy_enum#special-cases)
* [Built-in Model Validation](https://github.com/beerlington/classy_enum#model-validation)
-* [Using Enums Outside of ActiveRecord](https://github.com/beerlington/classy_enum#working-with-classyenum-outside-of-activerecord)
* [Formtastic Support](https://github.com/beerlington/classy_enum#formtastic-support)
## Rails & Ruby Versions Supported
@@ -297,19 +296,6 @@ end
@alarm.valid? # => true
```
-## Working with ClassyEnum outside of ActiveRecord
-
-While ClassyEnum was designed to be used directly with ActiveRecord, it can also be used outside of it. Here are some examples based on the enum class defined earlier in this document.
-
-Instantiate an enum member subclass *Priority::Low*
-
-```ruby
-# These statements are all equivalent
-low = Priority.find(:low)
-low = Priority.find('low')
-low = Priority::Low.new
-```
-
## Formtastic Support
Built-in Formtastic support has been removed as of 2.0. It is still
Please sign in to comment.
Something went wrong with that request. Please try again.