re-namespacing a touch
This commit is contained in:
6
map-mash/config/initializers/01-settings.rb
Normal file
6
map-mash/config/initializers/01-settings.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
require 'mc-settings'
|
||||
|
||||
Setting.load(
|
||||
:path => Rails.root,
|
||||
:files => ['config/settings.yml']
|
||||
)
|
7
map-mash/config/initializers/backtrace_silencers.rb
Normal file
7
map-mash/config/initializers/backtrace_silencers.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
||||
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
||||
|
||||
# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
|
||||
# Rails.backtrace_cleaner.remove_silencers!
|
10
map-mash/config/initializers/inflections.rb
Normal file
10
map-mash/config/initializers/inflections.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Add new inflection rules using the following format
|
||||
# (all these examples are active by default):
|
||||
# ActiveSupport::Inflector.inflections do |inflect|
|
||||
# inflect.plural /^(ox)$/i, '\1en'
|
||||
# inflect.singular /^(ox)en/i, '\1'
|
||||
# inflect.irregular 'person', 'people'
|
||||
# inflect.uncountable %w( fish sheep )
|
||||
# end
|
7
map-mash/config/initializers/mime_types.rb
Normal file
7
map-mash/config/initializers/mime_types.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Add new mime types for use in respond_to blocks:
|
||||
# Mime::Type.register "text/richtext", :rtf
|
||||
# Mime::Type.register_alias "text/html", :iphone
|
||||
|
||||
Mime::Type.register 'image/png', :png
|
19
map-mash/config/initializers/new_rails_defaults.rb
Normal file
19
map-mash/config/initializers/new_rails_defaults.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# These settings change the behavior of Rails 2 apps and will be defaults
|
||||
# for Rails 3. You can remove this initializer when Rails 3 is released.
|
||||
|
||||
if defined?(ActiveRecord)
|
||||
# Include Active Record class name as root for JSON serialized output.
|
||||
ActiveRecord::Base.include_root_in_json = true
|
||||
|
||||
# Store the full class name (including module namespace) in STI type column.
|
||||
ActiveRecord::Base.store_full_sti_class = true
|
||||
end
|
||||
|
||||
# Use ISO 8601 format for JSON serialized times and dates.
|
||||
ActiveSupport.use_standard_json_time_format = true
|
||||
|
||||
# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
|
||||
# if you're including raw json in an HTML page.
|
||||
ActiveSupport.escape_html_entities_in_json = false
|
8
map-mash/config/initializers/redis_conf.rb
Normal file
8
map-mash/config/initializers/redis_conf.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
require 'erb'
|
||||
|
||||
File.open(Rails.root.join('config/redis.conf.erb'), 'r') do |f|
|
||||
tmpl = ERB.new(f.read)
|
||||
File.open(Rails.root.join('config/redis.conf'), 'w') do |conf|
|
||||
conf.write(tmpl.result(binding))
|
||||
end
|
||||
end
|
15
map-mash/config/initializers/session_store.rb
Normal file
15
map-mash/config/initializers/session_store.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Your secret key for verifying cookie session data integrity.
|
||||
# If you change this key, all old sessions will become invalid!
|
||||
# Make sure the secret is at least 30 characters and all random,
|
||||
# no regular words or you'll be exposed to dictionary attacks.
|
||||
ActionController::Base.session = {
|
||||
:key => '_map_mash_session',
|
||||
:secret => '28f75daa5d26dcf4393a379bca87589d42118d8796f9c32fd5a183e879765c0ba458f1e9803caf5f183ed68d1a107de6f06871353a49bc1e29a758f7ada4c324'
|
||||
}
|
||||
|
||||
# Use the database for sessions instead of the cookie-based default,
|
||||
# which shouldn't be used to store highly confidential information
|
||||
# (create the session table with "rake db:sessions:create")
|
||||
# ActionController::Base.session_store = :active_record_store
|
Reference in New Issue
Block a user