Skip to content

Instantly share code, notes, and snippets.

@Mozart2234
Created August 25, 2016 22:30
Show Gist options
  • Save Mozart2234/6cfd837dfca2a1c3e53ca63cbb412671 to your computer and use it in GitHub Desktop.
Save Mozart2234/6cfd837dfca2a1c3e53ca63cbb412671 to your computer and use it in GitHub Desktop.
module ApplicationHelper
def resource
@resource ||= User.new
end
def resource_name
:user
end
def resource_class
User
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment