Sha256: c220cf42e6798f9356191ee1f1f20ed98ee2e74c388ad9d0f9fdd44f32a49fff

Contents?: true

Size: 1.3 KB

Versions: 11

Compression:

Stored size: 1.3 KB

Contents

# Go to http://wiki.merbivore.com/pages/init-rb

<%= "# " unless orm != :none %> use_orm :<%= orm %>
use_test :<%= testing_framework %>
use_template_engine :<%= template_engine %>

# Specify a specific version of a dependency
# dependency "RedCloth", "> 3.0"

Merb::BootLoader.before_app_loads do
  # This will get executed after dependencies have been loaded but before your app's classes have loaded.
end
 
Merb::BootLoader.after_app_loads do
  # This will get executed after your app's classes have been loaded.
end

# Move this to application.rb if you want it to be reloadable in dev mode.
Merb::Router.prepare do
  match('/').to(:controller => "<%= self.name.gsub("-", "_") %>", :action =>'index')

  default_routes
end

Merb::Config.use { |c|
  c[:environment]         = 'production',
  c[:framework]           = {},
  c[:log_level]           = :debug,
  c[:log_stream]          = STDOUT,
  # or use file for logging:
  # c[:log_file]          = Merb.root / "log" / "merb.log",
  c[:use_mutex]           = false,
  c[:session_store]       = 'cookie',
  c[:session_id_key]      = '_<%= base_name  %>_session_id',
  c[:session_secret_key]  = '<%= SHA1.new(rand(100000000000).to_s).to_s %>',
  c[:exception_details]   = true,
  c[:reload_classes]      = true,
  c[:reload_templates]    = true,
  c[:reload_time]         = 0.5
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
merb-gen-1.0.2 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.1 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.8 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.3 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.5 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.6 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.6.1 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.7 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.7.1 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.8.1 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0.4 lib/generators/templates/application/merb_flat/config/init.rb