Skip to content

Commit dab0135

Browse files
committed
Fix name if given path
1 parent dbf109f commit dab0135

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def initialize(opts = {})
2222
@name = opts[:name]
2323
raise 'Name can not be empty!' if @name.empty?
2424
raise 'Name can not start with an underscore!' if @name.start_with?('_')
25+
@name = @name.split("/").last
2526

2627
@name = @name.to_camel
2728

0 commit comments

Comments
 (0)