Sha256: 86e910c5b715abad2c35c5fbd981f66a5387ee03cdfa13b40e7b3b1640ec730f
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 KB
Contents
# Make the app's "gems" directory a place where gems are loaded from Gem.clear_paths Gem.path.unshift(Merb.root / "gems") # Make the app's "lib" directory a place where ruby files get "require"d from $LOAD_PATH.unshift(Merb.root / "lib") <% require 'sha1' %> Merb::Config.use do |c| ### Sets up a custom session id key, if you want to piggyback sessions of other applications ### with the cookie session store. If not specified, defaults to '_session_id'. # c[:session_id_key] = '_session_id' c[:session_secret_key] = '<%= SHA1.new(rand(100000000000).to_s).to_s %>' c[:session_store] = 'cookie' end ### Merb doesn't come with database support by default. You need ### an ORM plugin. Install one, and uncomment one of the following lines, ### if you need a database. ### Uncomment for DataMapper ORM <%= "# " unless default_orm?(:datamapper) %>use_orm :datamapper ### Uncomment for ActiveRecord ORM <%= "# " unless default_orm?(:activerecord) %>use_orm :activerecord ### Uncomment for Sequel ORM <%= "# " unless default_orm?(:sequel) %>use_orm :sequel ### This defines which test framework the generators will use ### rspec is turned on by default ### ### Note that you need to install the merb_rspec if you want to ue ### rspec and merb_test_unit if you want to use test_unit. ### merb_rspec is installed by default if you did gem install ### merb. ### <%= "# " unless default_test_suite?(:test) %>use_test :test_unit <%= "# " unless default_test_suite?(:spec) %>use_test :rspec ### Add your other dependencies here # These are some examples of how you might specify dependencies. # # dependencies "RedCloth", "merb_helpers" # OR # dependency "RedCloth", "> 3.0" # OR # dependencies "RedCloth" => "> 3.0", "ruby-aes-cext" => "= 1.0" Merb::BootLoader.after_app_loads do ### Add dependencies here that must load after the application loads: # dependency "magic_admin" # this gem uses the app's model classes end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-gen-0.9.2 | app_generators/merb/templates/config/init.rb |