Skip to content
Permalink
Browse files

Allow having token_controller inside namespaces (#95)

Allow having token_controller inside namespaces
  • Loading branch information...
albertobajo authored and nsarno committed Nov 15, 2016
1 parent cbd4d97 commit ed467d1e3e70dde5b4a367ac1b73dcf48ae4cebb
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/knock/auth_token_controller.rb
@@ -37,7 +37,7 @@ def entity_class
end

def entity_name
self.class.name.split('TokenController').first
self.class.name.scan(/\w+/).last.split('TokenController').first
end

def auth_params

0 comments on commit ed467d1

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.