Module: Authorization::Padrino

Defined in:
lib/declarative_authorization_padrino/padrino.rb

Defined Under Namespace

Modules: CurrentUser, Protect

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



3
4
5
6
7
# File 'lib/declarative_authorization_padrino/padrino.rb', line 3

def self.registered(app)
  app.extend(Protect)
  def app.hide_action(*args); end; #stub this method since it belongs to rails' controllers
  app.helpers Authorization::AuthorizationInController
end