Sha256: dfe84064f3e57146941fb22576ff0c331b21b007cdbc3fe50f23cb0ede155603

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 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]      = '_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

5 entries across 5 versions & 1 rubygems

Version Path
merb-gen-0.9.10 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-0.9.11 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-0.9.12 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-0.9.13 lib/generators/templates/application/merb_flat/config/init.rb
merb-gen-1.0 lib/generators/templates/application/merb_flat/config/init.rb