Please sign in to comment.
Add a .model_name method for ActiveModel compliance.
This uses ActiveModel::Naming, which in turn requires ActiveModel and ActiveSupport to be present if you use the ActiveModelCompliance plugin. This shouldn't be a problem as if you need compliance you will have ActiveModel and ActiveSupport around anyway.
- Loading branch information...
Showing with 33 additions and 0 deletions.