Skip to content

Commit

Permalink
Fix #558 : Wrong constant name guess
Browse files Browse the repository at this point in the history
  • Loading branch information
jalberto committed May 26, 2016
1 parent 7eb7ab9 commit e63206c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/administrate/resource_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def model_path_parts
end

def controller_path_parts
controller_path.singularize.split("/")[1..-1]
controller_path.split("/")[1..-1].map(&:singularize)
end

attr_reader :controller_path
Expand Down

0 comments on commit e63206c

Please sign in to comment.