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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you consider adding the functionality where one could define the model class at the controller level? Currently I have to do something like this:
class Admin::ActivitiesController < Global::AdminController
private
def authorize!
super PublicActivity::Activity
end
def allowed_to?(rule)
super rule, PublicActivity::Activity
end
end
Perhaps we could define this class at a class level once?
The text was updated successfully, but these errors were encountered:
Would you consider adding the functionality where one could define the model class at the controller level? Currently I have to do something like this:
Perhaps we could define this class at a class level once?
The text was updated successfully, but these errors were encountered: