lib/adeia/controller_resource.rb in adeia-0.6.0 vs lib/adeia/controller_resource.rb in adeia-0.6.1
- old
+ new
@@ -20,11 +20,11 @@
when "edit", "update", "destroy"
controller.load_and_authorize!
end
end
- def self.require_login
- controller.require_login!(controller)
+ def self.require_login(controller)
+ controller.require_login!
end
def initialize(controller, **args)
@controller = controller
@action_name = args.fetch(:action, @controller.action_name)
\ No newline at end of file