initial commit from appmail

This commit is contained in:
Adam Cooke
2017-04-19 13:07:25 +01:00
parent a3eff53792
commit 2fdba0ceb5
474 changed files with 51228 additions and 0 deletions
View File
@@ -0,0 +1,20 @@
module WithinOrganization
extend ActiveSupport::Concern
included do
helper_method :organization
before_action :add_organization_to_page_title
end
private
def organization
@organization ||= current_user.organizations_scope.find_by_permalink!(params[:org_permalink])
end
def add_organization_to_page_title
page_title << organization.name
end
end