Skip to content

Instantly share code, notes, and snippets.

@BitOfUniverse
Created March 28, 2019 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BitOfUniverse/658bb8aa73c8d3214b8d714999cf0d53 to your computer and use it in GitHub Desktop.
Save BitOfUniverse/658bb8aa73c8d3214b8d714999cf0d53 to your computer and use it in GitHub Desktop.
Ruby IFFE usage in Rails
class RailsController
helper_method def current_user
User.current
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment