-
-
Save mattetti/15631 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================== config/dependencies.rb | |
dependency "merb-action-args", "0.9.9" # Provides support for querystring arguments to be passed in to controller actions | |
dependency "merb-assets", "0.9.9" # Provides link_to, asset_path, auto_link, image_tag methods (and lots more) | |
dependency "merb-cache", "0.9.9" # Provides your application with caching functions | |
dependency "merb-helpers", "0.9.9" # Provides the form, date/time, and other helpers | |
dependency "merb-mailer", "0.9.9" # Integrates mail support via Merb Mailer | |
dependency "merb-slices", "0.9.9" # Provides a mechanism for letting plugins provide controllers, views, etc. to your app | |
dependency "merb-auth", "0.9.9" # An authentication slice (Merb's equivalent to Rails' restful authentication) | |
dependency "dm-core", "0.9.6" # The datamapper ORM | |
dependency "dm-aggregates", "0.9.6" # Provides your DM models with count, sum, avg, min, max, etc. | |
dependency "dm-migrations", "0.9.6" # Make incremental changes to your database. | |
dependency "dm-sweatshop", "0.9.6" # Generate pseudorandom models for testing or populating your development database | |
dependency "dm-timestamps", "0.9.6" # Automatically populate created_at, created_on, etc. when those properties are present. | |
dependency "dm-types", "0.9.6" # Provides additional types, including csv, json, yaml. | |
dependency "dm-validations", "0.9.6" # Validation framework | |
#========================= config/init.rb | |
# Go to http://wiki.merbivore.com/pages/init-rb | |
require 'config/dependencies.rb' | |
use_orm :datamapper | |
use_test :rspec | |
use_template_engine :erb | |
Merb::Config.use do |c| | |
c[:use_mutex] = true | |
c[:session_store] = 'cookie' # can also be 'memory', 'memcache', 'container', 'datamapper | |
# cookie session store configuration | |
c[:session_secret_key] = '1205346b9baa87cf8e49f78124c8d17a31ac0971' # required for cookie session store | |
# c[:session_id_key] = '_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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment