Sha256: a5d486be63dd889ffec8686efa922793088fab2b5d1ad783537148eddd76d6ed

Contents?: true

Size: 928 Bytes

Versions: 11

Compression:

Stored size: 928 Bytes

Contents

# Go to http://wiki.merbivore.com/pages/init-rb
 
# Specify a specific version of a dependency
# dependency "RedCloth", "> 3.0"

<%= "# " unless orm != :none %> use_orm :<%= orm %>
use_test :<%= testing_framework %>
use_template_engine :<%= template_engine %>
 
Merb::Config.use do |c|
  c[:use_mutex] = false
  c[:session_store] = 'cookie'  # can also be 'memory', 'memcache', 'container', 'datamapper
  
  # cookie session store configuration
  c[:session_secret_key]  = '<%= SHA1.new(rand(100000000000).to_s).to_s %>'  # required for cookie session store
  c[:session_id_key] = '_<%= base_name  %>_session_id' # cookie session id key, defaults to "_session_id"
end
 
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

Version data entries

11 entries across 11 versions & 1 rubygems

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