Skip to content

Commit

Permalink
Fix generated singular resource links for 'mass-noun' resources (obey…
Browse files Browse the repository at this point in the history
… Rails inflections)。
  • Loading branch information
keikun17 committed May 11, 2014
1 parent 18db064 commit f5d3a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/bootstrap/themed/themed_generator.rb
Expand Up @@ -31,11 +31,11 @@ def initialize_views_variables
end

def controller_routing_path
@controller_routing_path
ActiveModel::Naming.route_key(@model_name.constantize)
end

def singular_controller_routing_path
@controller_routing_path.singularize
ActiveModel::Naming.singular_route_key(@model_name.constantize)
end

def model_name
Expand Down

0 comments on commit f5d3a54

Please sign in to comment.