Skip to content

Commit

Permalink
Updated generators to make enum inheritance more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
beerlington committed Jan 29, 2011
1 parent d25dec9 commit da9f8fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generators/templates/enum.rb
Expand Up @@ -2,6 +2,6 @@ class <%= class_name %> < ClassyEnum::Base
enum_classes <%= args.map {|a| ":#{a}"}.join(", ") %>
end
<% args.each do |arg| %>
class <%= class_name + arg.camelize %>
class <%= class_name + arg.camelize %> < <%= class_name %>
end
<% end %>
2 changes: 1 addition & 1 deletion lib/generators/classy_enum/templates/enum.rb
Expand Up @@ -2,6 +2,6 @@ class <%= class_name %> < ClassyEnum::Base
enum_classes <%= values.map {|a| ":#{a}"}.join(", ") %>
end
<% values.each do |arg| %>
class <%= class_name + arg.camelize %>
class <%= class_name + arg.camelize %> < <%= class_name %>
end
<% end %>

0 comments on commit da9f8fd

Please sign in to comment.