Module: FatFreeCRM

Defined in:
lib/fat_free_crm.rb,
lib/fat_free_crm/i18n.rb,
lib/fat_free_crm/tabs.rb,
lib/fat_free_crm/engine.rb,
lib/fat_free_crm/errors.rb,
lib/fat_free_crm/fields.rb,
lib/fat_free_crm/plugin.rb,
lib/fat_free_crm/version.rb,
lib/fat_free_crm/callback.rb,
lib/fat_free_crm/sortable.rb,
lib/fat_free_crm/exceptions.rb,
lib/fat_free_crm/exportable.rb,
lib/fat_free_crm/permissions.rb,
lib/fat_free_crm/mail_processor/base.rb,
lib/fat_free_crm/mail_processor/dropbox.rb,
lib/fat_free_crm/mail_processor/comment_replies.rb

Overview

Fat Free CRM Copyright © 2008-2011 by Michael Dvorkin

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <www.gnu.org/licenses/>.


Defined Under Namespace

Modules: ActiveModel, Callback, Exportable, Fields, I18n, MailProcessor, Permissions, Sortable, VERSION Classes: Engine, MissingSettings, ObsoleteSettings, Plugin, Tabs

Class Method Summary collapse

Class Method Details

.applicationObject

Return either Application or Engine, depending on how Fat Free CRM has been loaded



22
23
24
# File 'lib/fat_free_crm.rb', line 22

def application
  defined?(FatFreeCRM::Engine) ? Engine : Application
end

.rootObject



26
27
28
# File 'lib/fat_free_crm.rb', line 26

def root
  application.root
end