forked from protocool/enumerations_mixin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reduces the amount of customization that power enum adds to its generator and allows for the migration_template helper to do its job of detecting and removing an existing template for the same migration.
- Loading branch information
Showing
4 changed files
with
15 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class <%= enum_class_name %> < ActiveRecord::Base | ||
class <%= class_name %> < ActiveRecord::Base | ||
acts_as_enumerated | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters