Skip to content

Instantly share code, notes, and snippets.

@tinogomes
Created March 29, 2016 04:52
Show Gist options
  • Save tinogomes/1be68dd0be318030c260 to your computer and use it in GitHub Desktop.
Save tinogomes/1be68dd0be318030c260 to your computer and use it in GitHub Desktop.
Declaring helper_method before def
class ApplicationController < ActionController::Base
helper_method \
def current_user
# some stuff
end
end
@fnando
Copy link

fnando commented Mar 29, 2016

Por que usar \\?

class ApplicationController < ActionController::Base
  helper_method def current_user
    # some stuff
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment