app/controllers/federails/client/actors_controller.rb in federails-0.1.0 vs app/controllers/federails/client/actors_controller.rb in federails-0.2.0
- old
+ new
@@ -23,10 +23,10 @@
private
# Use callbacks to share common setup or constraints between actions.
def set_actor
- @actor = Federails::Actor.find(params[:id])
+ @actor = Federails::Actor.find_param(params[:id])
authorize @actor, policy_class: Federails::Client::ActorPolicy
end
def account_param
params.require('account')