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/version.rb,
lib/fat_free_crm/callback.rb,
lib/fat_free_crm/sortable.rb,
lib/fat_free_crm/exceptions.rb,
lib/fat_free_crm/export_csv.rb,
lib/fat_free_crm/exportable.rb,
lib/fat_free_crm/permissions.rb,
lib/fat_free_crm/view_factory.rb,
lib/fat_free_crm/comment_extensions.rb,
lib/fat_free_crm/mail_processor/base.rb,
lib/fat_free_crm/mail_processor/dropbox.rb,
lib/fat_free_crm/secret_token_generator.rb,
lib/fat_free_crm/mail_processor/comment_replies.rb

Overview

Copyright © 2008-2013 Michael Dvorkin and contributors.

Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php


Defined Under Namespace

Modules: ActiveModel, Callback, CommentExtensions, Exportable, Fields, I18n, MailProcessor, Permissions, Sortable, VERSION Classes: Engine, ExportCSV, MissingSettings, ObsoleteSettings, SecretTokenGenerator, Tabs, ViewFactory

Class Method Summary collapse

Class Method Details

.applicationObject

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



13
14
15
# File 'lib/fat_free_crm.rb', line 13

def application
  engine? ? Engine : Application
end

.application?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/fat_free_crm.rb', line 24

def application?
  !engine?
end

.engine?Boolean

Are we running as an engine?

Returns:

  • (Boolean)


20
21
22
# File 'lib/fat_free_crm.rb', line 20

def engine?
  defined?(FatFreeCRM::Engine).present?
end