Top Level Namespace

Includes:
Log4r

Defined Under Namespace

Modules: Kernel, Mack Classes: MackApplicationGenerator, MigrationGenerator, ModelGenerator, PluginGenerator, ScaffoldGenerator, String

Instance Method Summary collapse

Instance Method Details

#using_active_record?Boolean

Returns true if the system is setup to use ActiveRecord

Returns:

  • (Boolean)


56
57
58
# File 'lib/initialization/initializers/orm_support.rb', line 56

def using_active_record?
  app_config.orm == 'active_record'
end

#using_data_mapper?Boolean

Returns true if the system is setup to use DataMapper

Returns:

  • (Boolean)


61
62
63
# File 'lib/initialization/initializers/orm_support.rb', line 61

def using_data_mapper?
  app_config.orm == 'data_mapper'
end