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
Sometimes you don’t want to always call controller.logger to get the logger. You might want to call logger directly in the view model logger.info("Hello from the View Model").
controller_method :logger, :current_user
This delegates logger and current_user on the view_model to the controller. Of course, you can use more than two method names.