website_builder_engine 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +20 -0
  3. data/Gemfile.lock +173 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.textile +260 -0
  6. data/Rakefile +26 -0
  7. data/app/assets/images/website_builder_engine/.gitkeep +0 -0
  8. data/app/assets/javascripts/website_builder_engine/application.js +9 -0
  9. data/app/assets/javascripts/website_builder_engine/articles.js.coffee +3 -0
  10. data/app/assets/javascripts/website_builder_engine/home.js.coffee +3 -0
  11. data/app/assets/javascripts/website_builder_engine/jqueryui.js +406 -0
  12. data/app/assets/javascripts/website_builder_engine/modernizr.js +4 -0
  13. data/app/assets/javascripts/website_builder_engine/offerpages.js.coffee +3 -0
  14. data/app/assets/javascripts/website_builder_engine/respond.js +2 -0
  15. data/app/assets/javascripts/website_builder_engine/settings.js.coffee +3 -0
  16. data/app/assets/javascripts/website_builder_engine/tabs.js +41 -0
  17. data/app/assets/stylesheets/website_builder_engine/application.css +33 -0
  18. data/app/assets/stylesheets/website_builder_engine/articles.css.scss +87 -0
  19. data/app/assets/stylesheets/website_builder_engine/base.css.scss +336 -0
  20. data/app/assets/stylesheets/website_builder_engine/home.css.scss +7 -0
  21. data/app/assets/stylesheets/website_builder_engine/layout.css.scss +64 -0
  22. data/app/assets/stylesheets/website_builder_engine/normalize.css.scss +413 -0
  23. data/app/assets/stylesheets/website_builder_engine/offerpages.css.scss +232 -0
  24. data/app/assets/stylesheets/website_builder_engine/scaffolds.css.scss +56 -0
  25. data/app/assets/stylesheets/website_builder_engine/settings.css.scss +7 -0
  26. data/app/assets/stylesheets/website_builder_engine/skeleton.css.scss +237 -0
  27. data/app/controllers/website_builder_engine/application_controller.rb +5 -0
  28. data/app/controllers/website_builder_engine/articles_controller.rb +113 -0
  29. data/app/controllers/website_builder_engine/home_controller.rb +7 -0
  30. data/app/controllers/website_builder_engine/offerpages_controller.rb +98 -0
  31. data/app/controllers/website_builder_engine/settings_controller.rb +85 -0
  32. data/app/helpers/website_builder_engine/application_helper.rb +4 -0
  33. data/app/models/article.rb +13 -0
  34. data/app/models/offerpage.rb +15 -0
  35. data/app/models/setting.rb +13 -0
  36. data/app/views/layouts/website_builder_engine/application.html.haml +22 -0
  37. data/app/views/layouts/website_builder_engine/home.html.haml +24 -0
  38. data/app/views/shared/_navigation.html.haml +3 -0
  39. data/app/views/website_builder_engine/articles/_form.html.haml +47 -0
  40. data/app/views/website_builder_engine/articles/edit.html.haml +7 -0
  41. data/app/views/website_builder_engine/articles/index.html.haml +16 -0
  42. data/app/views/website_builder_engine/articles/new.html.haml +5 -0
  43. data/app/views/website_builder_engine/articles/publish.html.haml +7 -0
  44. data/app/views/website_builder_engine/articles/show.html.haml +36 -0
  45. data/app/views/website_builder_engine/articles/template.html.haml +72 -0
  46. data/app/views/website_builder_engine/home/index.html.haml +26 -0
  47. data/app/views/website_builder_engine/offerpages/_form.html.haml +49 -0
  48. data/app/views/website_builder_engine/offerpages/edit.html.haml +7 -0
  49. data/app/views/website_builder_engine/offerpages/index.html.haml +16 -0
  50. data/app/views/website_builder_engine/offerpages/new.html.haml +5 -0
  51. data/app/views/website_builder_engine/offerpages/publish.html.haml +7 -0
  52. data/app/views/website_builder_engine/offerpages/show.html.haml +37 -0
  53. data/app/views/website_builder_engine/offerpages/template.html.haml +71 -0
  54. data/app/views/website_builder_engine/settings/_form.html.haml +40 -0
  55. data/app/views/website_builder_engine/settings/edit.html.haml +7 -0
  56. data/app/views/website_builder_engine/settings/index.html.haml +19 -0
  57. data/app/views/website_builder_engine/settings/new.html.haml +5 -0
  58. data/app/views/website_builder_engine/settings/show.html.haml +34 -0
  59. data/app/views/website_builder_engine/welcome/template.html.haml +66 -0
  60. data/config/routes.rb +19 -0
  61. data/db/seeds.rb +68 -0
  62. data/lib/tasks/website_builder_engine_tasks.rake +4 -0
  63. data/lib/website_builder_engine.rb +4 -0
  64. data/lib/website_builder_engine/engine.rb +5 -0
  65. data/script/rails +6 -0
  66. data/spec/dummy/Rakefile +7 -0
  67. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  68. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  69. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  70. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  71. data/spec/dummy/app/mailers/.gitkeep +0 -0
  72. data/spec/dummy/app/models/.gitkeep +0 -0
  73. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  74. data/spec/dummy/config.ru +4 -0
  75. data/spec/dummy/config/application.rb +51 -0
  76. data/spec/dummy/config/boot.rb +10 -0
  77. data/spec/dummy/config/database.yml +25 -0
  78. data/spec/dummy/config/environment.rb +5 -0
  79. data/spec/dummy/config/environments/development.rb +27 -0
  80. data/spec/dummy/config/environments/production.rb +51 -0
  81. data/spec/dummy/config/environments/test.rb +39 -0
  82. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  83. data/spec/dummy/config/initializers/inflections.rb +10 -0
  84. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  85. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  86. data/spec/dummy/config/initializers/session_store.rb +8 -0
  87. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  88. data/spec/dummy/config/locales/en.yml +5 -0
  89. data/spec/dummy/config/mongoid.yml +20 -0
  90. data/spec/dummy/config/routes.rb +3 -0
  91. data/spec/dummy/db/seeds.rb +68 -0
  92. data/spec/dummy/lib/assets/.gitkeep +0 -0
  93. data/spec/dummy/log/.gitkeep +0 -0
  94. data/spec/dummy/public/404.html +26 -0
  95. data/spec/dummy/public/422.html +26 -0
  96. data/spec/dummy/public/500.html +26 -0
  97. data/spec/dummy/public/favicon.ico +0 -0
  98. data/spec/dummy/script/rails +6 -0
  99. data/spec/spec_helper.rb +41 -0
  100. data/version.rb +3 -0
  101. data/website_builder_engine.gemspec +31 -0
  102. metadata +381 -0
@@ -0,0 +1,5 @@
1
+ %h1 New setting
2
+
3
+ = render 'form'
4
+
5
+ = link_to 'Back', settings_path
@@ -0,0 +1,34 @@
1
+ %p
2
+ %b Site Name:
3
+ = @setting.site_name
4
+ %p
5
+ %b Domain:
6
+ = @setting.domain
7
+ %p
8
+ %b Site title:
9
+ = @setting.site_title
10
+ %p
11
+ %b Tagline:
12
+ = @setting.site_tagline
13
+ %p
14
+ %b Site description:
15
+ = @setting.site_description
16
+ %p
17
+ %b Site keywords:
18
+ = @setting.site_keywords
19
+ %p
20
+ %b Articles directory:
21
+ = @setting.articles_directory
22
+ %p
23
+ %b Offer Pages directory:
24
+ = @setting.offerpages_directory
25
+ %p
26
+ %b Twitter account:
27
+ = @setting.twitter_account
28
+ %p
29
+ %b Article sidebar:
30
+ = @setting.sidebar
31
+
32
+ = link_to 'Edit', edit_setting_path(@setting)
33
+ \|
34
+ = link_to 'Back', settings_path
@@ -0,0 +1,66 @@
1
+ - html_tag class: 'no-js' do
2
+ %head
3
+ %meta{:charset => "utf-8"}
4
+ %meta{"http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1"}
5
+ %meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"}
6
+ %meta{:name=>'description', :content=>"#{@settings.site_description}"}
7
+ %meta{:name=>'keywords', :content=>"#{@settings.site_keywords}"}
8
+ -# meta tags for the Open Graph protocol for Facebook
9
+ %meta{:property => "og:title", :content => "#{@settings.site_title}"}
10
+ %meta{:property => "og:type", :content => "article"}
11
+ %meta{:property => "og:url", :content => "#{@permalink}"}
12
+ %meta{:property => "og:image", :content => ""}
13
+ %meta{:property => "og:description", :content => "#{@settings.site_description}"}
14
+ %meta{:property => "og:site_name", :content => "#{@settings.site_name}"}
15
+ = stylesheet_link_tag :application
16
+ = javascript_include_tag :application
17
+ = csrf_meta_tags
18
+ %title
19
+ = @settings.site_title
20
+ %body.welcome
21
+ .container
22
+ .logo.sixteen.columns
23
+ .sitename
24
+ = link_to @settings.site_name, '/index.html'
25
+ .tagline
26
+ = @settings.site_tagline
27
+ %hr/
28
+ %article.twelve.columns
29
+ %header
30
+ %h1
31
+ = @settings.site_title
32
+ #main{:role => "main"}
33
+ %ul
34
+ - if @articles.empty?
35
+ %li
36
+ none
37
+ - else
38
+ - @articles.each do |article|
39
+ %li
40
+ = link_to article.title, "#{@url_path + article.filename}.html"
41
+ #fb-root
42
+ %fb:like{:action => "recommend", :send => "true", :show_faces => "false", :width => "450"}
43
+ %aside.four.columns
44
+ %section
45
+ %h1
46
+ Recommend This Site
47
+ %ul
48
+ %li
49
+ %g:plusone{:count => "medium", :size => "small"}
50
+ %li
51
+ %a.twitter-share-button{"data-count" => "none",
52
+ "data-via" => "#{@settings.twitter_account}", :href => "http://twitter.com/share"}
53
+ - unless @welcome_sidebar.blank?
54
+ %section
55
+ %hr
56
+ = @welcome_sidebar
57
+ %hr
58
+ %footer.sixteen.columns
59
+ %hr/
60
+ -# Javascript for Facebook, Twitter, and Google+ sharing
61
+ %script{:type => "text/javascript",
62
+ :src => "http://connect.facebook.net/en_US/all.js#appId=176448065752391&xfbml=1"}
63
+ %script{:type => "text/javascript",
64
+ :src => "http://platform.twitter.com/widgets.js"}
65
+ %script{:type => "text/javascript",
66
+ :src => "https://apis.google.com/js/plusone.js"}
@@ -0,0 +1,19 @@
1
+ WebsiteBuilderEngine::Engine.routes.draw do
2
+
3
+ resources :offerpages do
4
+ member do
5
+ get 'publish'
6
+ end
7
+ end
8
+
9
+ resources :articles do
10
+ member do
11
+ get 'publish'
12
+ end
13
+ end
14
+
15
+ resources :settings
16
+
17
+ root :to => "home#index"
18
+
19
+ end
@@ -0,0 +1,68 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
+ # Mayor.create(name: 'Emanuel', city: cities.first)
8
+ puts 'EMPTY THE MONGODB DATABASE'
9
+ Mongoid.master.collections.reject { |c| c.name =~ /^system/}.each(&:drop)
10
+ setting = Setting.create! :articles_directory => 'howto',
11
+ :offerpages_directory => 'products',
12
+ :domain => 'railsapps.github.com',
13
+ :site_name => 'Rails Apps',
14
+ :site_title => 'Rails 3.1 Example Apps and Tutorials',
15
+ :site_tagline => 'Starter Apps for Rails 3.1',
16
+ :site_description => 'Examples of complete working Rails 3.1 web applications',
17
+ :site_keywords => 'rails, ruby, apps, application, example, tutorial',
18
+ :twitter_account => 'rails_apps',
19
+ :sidebar => "h6. Colophon\n\nCreated with html5-website-builder"
20
+ puts 'Set defaults for the app'
21
+
22
+ data =
23
+ <<-RUBY
24
+ h3. Lorem Ipsum Dolor
25
+
26
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
27
+
28
+ h3. Dolor Sit Amet
29
+
30
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
31
+
32
+ bq. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
33
+ RUBY
34
+
35
+ offerpage = Offerpage.create! :title => 'Installing Rails 3.1',
36
+ :filename => 'ebook',
37
+ :description => 'Free ebook shows how to create starter apps for Rails 3.1',
38
+ :keywords => 'ebook, rails, ruby, apps, application, example, tutorial, install',
39
+ :headline => 'Save Time Creating Apps with Rails 3.1',
40
+ :subhead => 'What You Need to Know',
41
+ :content_block1 => data,
42
+ :content_block2 => data,
43
+ :offer_block => data,
44
+ :testimonials => data,
45
+ :published => false
46
+ puts "Created offerpage #{offerpage.id}"
47
+
48
+ article1 = Article.create! :title => 'Installing Rails 3.1',
49
+ :filename => 'installing-rails-3-1',
50
+ :description => 'Detailed instructions on how to install Rails 3.1',
51
+ :keywords => 'rails, ruby, apps, application, example, tutorial, install',
52
+ :headline => 'Read This Before Installing Rails 3.1',
53
+ :subhead => 'What You Need to Know',
54
+ :content => data,
55
+ :published => false,
56
+ :related_items => []
57
+ puts "Created sample article #{article1.id}"
58
+ article2 = Article.create! :title => 'Using Rails 3.1',
59
+ :filename => 'using-rails-3-1',
60
+ :description => 'Detailed instructions on how to use Rails 3.1',
61
+ :keywords => 'rails, ruby, apps, application, example, tutorial, install',
62
+ :headline => 'How to Use Rails 3.1',
63
+ :subhead => 'What You Need to Know',
64
+ :content => data,
65
+ :sidebar => setting.sidebar,
66
+ :related_items => [article1._id.to_s],
67
+ :published => false
68
+ puts "Created sample article #{article2.id}"
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :website_builder_engine do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,4 @@
1
+ require "website_builder_engine/engine"
2
+
3
+ module WebsiteBuilderEngine
4
+ end
@@ -0,0 +1,5 @@
1
+ module WebsiteBuilderEngine
2
+ class Engine < Rails::Engine
3
+ isolate_namespace WebsiteBuilderEngine
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ #!/usr/bin/env ruby
3
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
4
+
5
+ ENGINE_PATH = File.expand_path('../..', __FILE__)
6
+ load File.expand_path('../../spec/dummy/script/rails', __FILE__)
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Dummy::Application.load_tasks
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
File without changes
File without changes
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag "application" %>
6
+ <%= javascript_include_tag "application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,51 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # Pick the frameworks you want:
4
+ # require "active_record/railtie"
5
+ require "action_controller/railtie"
6
+ require "action_mailer/railtie"
7
+ require "active_resource/railtie"
8
+ # # require "rails/test_unit/railtie"
9
+
10
+ # If you have a Gemfile, require the default gems, the ones in the
11
+ # current environment and also include :assets gems if in development
12
+ # or test environments.
13
+ Bundler.require *Rails.groups(:assets) if defined?(Bundler)
14
+
15
+ require "website_builder_engine"
16
+
17
+ module Dummy
18
+ class Application < Rails::Application
19
+ # Settings in config/environments/* take precedence over those specified here.
20
+ # Application configuration should go into files in config/initializers
21
+ # -- all .rb files in that directory are automatically loaded.
22
+
23
+ # Custom directories with classes and modules you want to be autoloadable.
24
+ # config.autoload_paths += %W(#{config.root}/extras)
25
+
26
+ # Only load the plugins named here, in the order given (default is alphabetical).
27
+ # :all can be used as a placeholder for all plugins not explicitly named.
28
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
29
+
30
+ # Activate observers that should always be running.
31
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
32
+
33
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
34
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
35
+ # config.time_zone = 'Central Time (US & Canada)'
36
+
37
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
38
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
39
+ # config.i18n.default_locale = :de
40
+
41
+ # Configure the default encoding used in templates for Ruby 1.9.
42
+ config.encoding = "utf-8"
43
+
44
+ # Configure sensitive parameters which will be filtered from the log file.
45
+ config.filter_parameters += [:password]
46
+
47
+ # Enable the asset pipeline
48
+ config.assets.enabled = true
49
+ end
50
+ end
51
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,27 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+ end
@@ -0,0 +1,51 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Specifies the header that your server uses for sending files
18
+ # (comment out if your front-end server doesn't support this)
19
+ config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx
20
+
21
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
22
+ # config.force_ssl = true
23
+
24
+ # See everything in the log (default is :info)
25
+ # config.log_level = :debug
26
+
27
+ # Use a different logger for distributed setups
28
+ # config.logger = SyslogLogger.new
29
+
30
+ # Use a different cache store in production
31
+ # config.cache_store = :mem_cache_store
32
+
33
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
34
+ # config.action_controller.asset_host = "http://assets.example.com"
35
+
36
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
37
+ # config.assets.precompile += %w( search.js )
38
+
39
+ # Disable delivery errors, bad email addresses will be ignored
40
+ # config.action_mailer.raise_delivery_errors = false
41
+
42
+ # Enable threaded mode
43
+ # config.threadsafe!
44
+
45
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
46
+ # the I18n.default_locale when a translation can not be found)
47
+ config.i18n.fallbacks = true
48
+
49
+ # Send deprecation notices to registered listeners
50
+ config.active_support.deprecation = :notify
51
+ end