Skip to content

Instantly share code, notes, and snippets.

@francirp
Created August 8, 2016 15:36
Show Gist options
  • Save francirp/19ce5aae331a186e851e1a10652def4e to your computer and use it in GitHub Desktop.
Save francirp/19ce5aae331a186e851e1a10652def4e to your computer and use it in GitHub Desktop.
Decorators Codeblock 3
module CompaniesHelper
  def company
    @decorated_company ||= @company.decorate
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment