Sha256: 964a99ec61c662c1671c963639c70e9eb1dfe3e3aff689e277ee87c1453e6eed

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

# If the application explicitly says it doesn't want to use any orm,
# then we're not going to initialize any default orm.
# Note: this is initialization process only. By the default, application
# generated by mack still have data_mapper as default.
orm = app_config.orm
unless orm.nil? 
  Mack.logger.info "Initializing #{orm} orm..."
  require "mack-#{orm}"
  require "mack-#{orm}_tasks"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mack-0.6.0 lib/initialization/orm_support.rb
mack-0.6.0.1 lib/initialization/orm_support.rb