Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #In controller:
- SomeService.perfom(params[:user_type])
- #In service:
- class SomeService
- def perform(user_type)
- send(user_type)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement