Skip to content

Instantly share code, notes, and snippets.

@mikeauclair
Last active December 17, 2015 21:59
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 mikeauclair/5678358 to your computer and use it in GitHub Desktop.
Save mikeauclair/5678358 to your computer and use it in GitHub Desktop.
class Account
#blahblah
def external_management
if appdirect?
@external_management ||= OpenStruct.new(:user_url => 'blah', :accont_url => 'blah')
end
end
#blahblah
end
<% if account.external_management %>
<%= I18n.t(account.external_management.method_for_copy_key) %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment