lolita 3.4.2 → 3.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +36 -36
- data/Gemfile +29 -29
- data/README.md +147 -147
- data/Rakefile +6 -6
- data/app/assets/javascripts/lolita/application.js +6 -6
- data/app/assets/javascripts/lolita/tab.js +100 -100
- data/app/assets/stylesheets/lolita/PIE-custom.htc +87 -87
- data/app/assets/stylesheets/lolita/PIE.htc +81 -81
- data/app/assets/stylesheets/lolita/application.css +6 -6
- data/app/assets/stylesheets/lolita/default.css.erb +169 -169
- data/app/assets/stylesheets/lolita/jquery-ui-1.8.16.lolita.css.erb +567 -567
- data/app/assets/stylesheets/lolita/style.css.erb +553 -553
- data/app/helpers/components/lolita/configuration/list_component.rb +10 -10
- data/app/helpers/components/lolita/configuration_component.rb +20 -20
- data/app/views/components/lolita/configuration/column/_first.html.haml +1 -1
- data/app/views/components/lolita/configuration/column/header/_first.html.haml +1 -1
- data/app/views/components/lolita/configuration/column/header/_sort.html.haml +6 -6
- data/app/views/components/lolita/configuration/columns/header/_display.html.haml +5 -5
- data/app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml +7 -7
- data/app/views/components/lolita/configuration/field/string/text/_display.html.haml +7 -7
- data/app/views/components/lolita/configuration/search/_display.html.haml +2 -2
- data/app/views/components/lolita/configuration/tab/_display.html.haml +3 -3
- data/app/views/components/lolita/configuration/tabs/_form.html.haml +6 -6
- data/app/views/kaminari/lolita/_first_page.html.erb +11 -11
- data/app/views/kaminari/lolita/_gap.html.erb +8 -8
- data/app/views/kaminari/lolita/_last_page.html.erb +11 -11
- data/app/views/kaminari/lolita/_next_page.html.erb +11 -11
- data/app/views/kaminari/lolita/_page.html.erb +12 -12
- data/app/views/kaminari/lolita/_paginator.html.erb +23 -23
- data/app/views/kaminari/lolita/_prev_page.html.erb +11 -11
- data/app/views/lolita/info/index.html.erb +232 -232
- data/author +1 -1
- data/config/routes.rb +6 -6
- data/lib/generators/lolita/install_generator.rb +19 -19
- data/lib/generators/lolita/uninstall_generator.rb +70 -70
- data/lib/generators/templates/lolita.rb +13 -13
- data/lib/lolita.rb +140 -140
- data/lib/lolita/adapter/abstract_adapter.rb +15 -15
- data/lib/lolita/adapter/active_record.rb +227 -227
- data/lib/lolita/adapter/common_helper.rb +221 -221
- data/lib/lolita/adapter/field_helper.rb +18 -18
- data/lib/lolita/adapter/mongoid.rb +241 -241
- data/lib/lolita/components/base.rb +11 -11
- data/lib/lolita/configuration.rb +60 -60
- data/lib/lolita/configuration/column.rb +181 -181
- data/lib/lolita/configuration/field/big_decimal.rb +12 -12
- data/lib/lolita/configuration/field/boolean.rb +12 -12
- data/lib/lolita/configuration/field/date.rb +12 -12
- data/lib/lolita/configuration/field/hidden.rb +12 -12
- data/lib/lolita/configuration/field/integer.rb +11 -11
- data/lib/lolita/configuration/field/string.rb +16 -16
- data/lib/lolita/configuration/field/time.rb +13 -13
- data/lib/lolita/configuration/field_set.rb +25 -25
- data/lib/lolita/configuration/filter.rb +116 -116
- data/lib/lolita/configuration/list.rb +200 -200
- data/lib/lolita/configuration/search.rb +104 -104
- data/lib/lolita/controllers/component_helpers.rb +156 -156
- data/lib/lolita/controllers/internal_helpers.rb +71 -71
- data/lib/lolita/controllers/url_helpers.rb +7 -7
- data/lib/lolita/dbi/base.rb +56 -56
- data/lib/lolita/hooks/named_hook.rb +125 -125
- data/lib/lolita/lazy_loader.rb +54 -54
- data/lib/lolita/navigation/tree.rb +132 -132
- data/lib/lolita/rails/engine.rb +23 -23
- data/lib/lolita/rails/routes.rb +129 -129
- data/lib/lolita/ruby_ext/accessors.rb +26 -26
- data/lib/lolita/search/simple.rb +75 -75
- data/lib/lolita/support/formatter.rb +62 -62
- data/lib/lolita/support/formatter/rails.rb +56 -56
- data/lib/lolita/system_configuration/base.rb +178 -178
- data/lib/lolita/test/matchers.rb +77 -77
- data/lib/lolita/version.rb +30 -30
- data/lib/tasks/tinymce-assets.rake +6 -6
- data/lolita.gemspec +34 -34
- data/spec/adapter/common_helper_spec.rb +95 -95
- data/spec/adapter_helper.rb +42 -42
- data/spec/builder_spec.rb +120 -120
- data/spec/configuration/base_spec.rb +22 -22
- data/spec/configuration/field_spec.rb +118 -118
- data/spec/configuration/filter_spec.rb +131 -131
- data/spec/configuration/tab_spec.rb +187 -187
- data/spec/configuration/tabs_spec.rb +120 -120
- data/spec/generators/lolita/install_generator_spec.rb +54 -54
- data/spec/generators/lolita/uninstall_generator_spec.rb +48 -48
- data/spec/orm/mongoid.rb +12 -12
- data/spec/rails_app/app/controllers/application_controller.rb +3 -3
- data/spec/rails_app/app/helpers/application_helper.rb +3 -3
- data/spec/rails_app/app/mongoid/address.rb +7 -7
- data/spec/rails_app/app/mongoid/category.rb +18 -18
- data/spec/rails_app/app/mongoid/comment.rb +5 -5
- data/spec/rails_app/app/mongoid/post.rb +30 -30
- data/spec/rails_app/app/mongoid/preference.rb +5 -5
- data/spec/rails_app/app/mongoid/profile.rb +13 -13
- data/spec/rails_app/app/mongoid/tag.rb +3 -3
- data/spec/rails_app/app/views/components/lolita/configuration/list/_body_cell.html.erb +1 -1
- data/spec/rails_app/config/application.rb +33 -33
- data/spec/rails_app/config/boot.rb +7 -7
- data/spec/rails_app/config/environment.rb +5 -5
- data/spec/rails_app/config/environments/development.rb +23 -23
- data/spec/rails_app/config/environments/production.rb +37 -37
- data/spec/rails_app/config/environments/test.rb +37 -37
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/rails_app/config/initializers/inflections.rb +2 -2
- data/spec/rails_app/config/initializers/secret_token.rb +1 -1
- data/spec/rails_app/config/routes.rb +2 -2
- data/spec/rails_app/lib/lolita/configuration/field/my_custom_collection.rb +13 -13
- data/spec/rails_app/public/javascripts/jquery-1.5.1.min.js +15 -15
- data/spec/rails_app/public/javascripts/lolita/main.js +6 -6
- data/spec/rails_app/public/javascripts/modernizr-1.7.min.js +1 -1
- data/spec/rails_app/public/javascripts/rails.js +137 -137
- data/spec/rails_app/public/javascripts/tinymce/langs/en.js +221 -221
- data/spec/rails_app/public/javascripts/tinymce/license.txt +504 -504
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/about.htm +52 -52
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/anchor.htm +26 -26
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/charmap.htm +51 -51
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/color_picker.htm +74 -74
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/editor_template_src.js +1328 -1328
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/image.htm +80 -80
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/about.js +73 -73
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/anchor.js +42 -42
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/charmap.js +354 -354
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/color_picker.js +329 -329
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/image.js +247 -247
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/link.js +153 -153
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -56
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en.js +68 -68
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +53 -53
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/link.htm +57 -57
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/shortcuts.htm +47 -47
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +66 -66
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +117 -117
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +988 -988
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/source_editor.htm +25 -25
- data/spec/rails_app/public/javascripts/tinymce/tiny_mce_popup.js +4 -4
- data/spec/rails_app/public/stylesheets/lolita/default.css +169 -169
- data/spec/rails_app/public/stylesheets/lolita/style.css +214 -214
- data/spec/spec_helper.rb +51 -51
- data/vendor/assets/javascripts/application_vendor_lolita.js +4 -4
- data/vendor/assets/javascripts/jquery-numeric.js +279 -279
- data/vendor/assets/javascripts/modernizr_1_7_min.js +1 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +66 -66
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +117 -117
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +988 -988
- data/vendor/assets/stylesheets/jquery-ui-1.8.16.custom.css +567 -567
- metadata +4 -3
@@ -1,3 +1,3 @@
|
|
1
|
-
class ApplicationController < ActionController::Base
|
2
|
-
protect_from_forgery
|
3
|
-
end
|
1
|
+
class ApplicationController < ActionController::Base
|
2
|
+
protect_from_forgery
|
3
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
# Methods added to this helper will be available to all templates in the application.
|
2
|
-
module ApplicationHelper
|
3
|
-
end
|
1
|
+
# Methods added to this helper will be available to all templates in the application.
|
2
|
+
module ApplicationHelper
|
3
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
|
-
class Address
|
2
|
-
include Mongoid::Document
|
3
|
-
field :street
|
4
|
-
field :city
|
5
|
-
field :state
|
6
|
-
field :post_code
|
7
|
-
embedded_in :person
|
1
|
+
class Address
|
2
|
+
include Mongoid::Document
|
3
|
+
field :street
|
4
|
+
field :city
|
5
|
+
field :state
|
6
|
+
field :post_code
|
7
|
+
embedded_in :person
|
8
8
|
end
|
@@ -1,19 +1,19 @@
|
|
1
|
-
|
2
|
-
class Category
|
3
|
-
include Mongoid::Document
|
4
|
-
include Lolita::Configuration
|
5
|
-
field :name, type: String
|
6
|
-
has_many :posts
|
7
|
-
|
8
|
-
lolita do
|
9
|
-
list do
|
10
|
-
list(:posts) do
|
11
|
-
column :comments do
|
12
|
-
list do
|
13
|
-
column :body
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
1
|
+
|
2
|
+
class Category
|
3
|
+
include Mongoid::Document
|
4
|
+
include Lolita::Configuration
|
5
|
+
field :name, type: String
|
6
|
+
has_many :posts
|
7
|
+
|
8
|
+
lolita do
|
9
|
+
list do
|
10
|
+
list(:posts) do
|
11
|
+
column :comments do
|
12
|
+
list do
|
13
|
+
column :body
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
19
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class Comment
|
2
|
-
include Mongoid::Document
|
3
|
-
field :body
|
4
|
-
belongs_to :post
|
5
|
-
belongs_to :profile
|
1
|
+
class Comment
|
2
|
+
include Mongoid::Document
|
3
|
+
field :body
|
4
|
+
belongs_to :post
|
5
|
+
belongs_to :profile
|
6
6
|
end
|
@@ -1,31 +1,31 @@
|
|
1
|
-
class Post
|
2
|
-
include Mongoid::Document
|
3
|
-
include Lolita::Configuration
|
4
|
-
field :title, type: String
|
5
|
-
field :body, type: String
|
6
|
-
field :is_public, type: Boolean
|
7
|
-
field :price, type: BigDecimal
|
8
|
-
field :published_at, type: DateTime, default: -> { Time.now }
|
9
|
-
field :expire_date, type: Date
|
10
|
-
belongs_to :category
|
11
|
-
has_and_belongs_to_many :tags
|
12
|
-
has_many :comments
|
13
|
-
belongs_to :profile
|
14
|
-
validates_presence_of :title
|
15
|
-
default_scope order_by([:title, :asc])
|
16
|
-
accepts_nested_attributes_for :comments, :reject_if => :all_blank
|
17
|
-
|
18
|
-
lolita do
|
19
|
-
list do
|
20
|
-
column :comments do
|
21
|
-
list do
|
22
|
-
column :body
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
def self.custom_search query,request=nil,dbi=nil
|
29
|
-
self.where(:expire_date.gt => Date.today)
|
30
|
-
end
|
1
|
+
class Post
|
2
|
+
include Mongoid::Document
|
3
|
+
include Lolita::Configuration
|
4
|
+
field :title, type: String
|
5
|
+
field :body, type: String
|
6
|
+
field :is_public, type: Boolean
|
7
|
+
field :price, type: BigDecimal
|
8
|
+
field :published_at, type: DateTime, default: -> { Time.now }
|
9
|
+
field :expire_date, type: Date
|
10
|
+
belongs_to :category
|
11
|
+
has_and_belongs_to_many :tags
|
12
|
+
has_many :comments
|
13
|
+
belongs_to :profile
|
14
|
+
validates_presence_of :title
|
15
|
+
default_scope order_by([:title, :asc])
|
16
|
+
accepts_nested_attributes_for :comments, :reject_if => :all_blank
|
17
|
+
|
18
|
+
lolita do
|
19
|
+
list do
|
20
|
+
column :comments do
|
21
|
+
list do
|
22
|
+
column :body
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.custom_search query,request=nil,dbi=nil
|
29
|
+
self.where(:expire_date.gt => Date.today)
|
30
|
+
end
|
31
31
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class Preference
|
2
|
-
include Mongoid::Document
|
3
|
-
include Lolita::Configuration
|
4
|
-
field :name
|
5
|
-
has_and_belongs_to_many :profiles
|
1
|
+
class Preference
|
2
|
+
include Mongoid::Document
|
3
|
+
include Lolita::Configuration
|
4
|
+
field :name
|
5
|
+
has_and_belongs_to_many :profiles
|
6
6
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
class Profile
|
2
|
-
include Mongoid::Document
|
3
|
-
include Lolita::Configuration
|
4
|
-
field :name, :type=>String
|
5
|
-
field :age
|
6
|
-
field :genere
|
7
|
-
has_many :posts
|
8
|
-
has_many :comments
|
9
|
-
has_and_belongs_to_many :preferences
|
10
|
-
embeds_one :address
|
11
|
-
lolita do
|
12
|
-
|
13
|
-
end
|
1
|
+
class Profile
|
2
|
+
include Mongoid::Document
|
3
|
+
include Lolita::Configuration
|
4
|
+
field :name, :type=>String
|
5
|
+
field :age
|
6
|
+
field :genere
|
7
|
+
has_many :posts
|
8
|
+
has_many :comments
|
9
|
+
has_and_belongs_to_many :preferences
|
10
|
+
embeds_one :address
|
11
|
+
lolita do
|
12
|
+
|
13
|
+
end
|
14
14
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class Tag
|
2
|
-
include Mongoid::Document
|
3
|
-
field :name
|
1
|
+
class Tag
|
2
|
+
include Mongoid::Document
|
3
|
+
field :name
|
4
4
|
end
|
@@ -1 +1 @@
|
|
1
|
-
<td>overwritten cell</td>
|
1
|
+
<td>overwritten cell</td>
|
@@ -1,33 +1,33 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
require "action_controller/railtie"
|
3
|
-
require "action_mailer/railtie"
|
4
|
-
require "active_resource/railtie"
|
5
|
-
require "rails/test_unit/railtie"
|
6
|
-
require "sprockets/railtie"
|
7
|
-
|
8
|
-
Bundler.require(:default, LOLITA_ORM, Rails.env) if defined?(Bundler)
|
9
|
-
|
10
|
-
module RailsApp
|
11
|
-
class Application < Rails::Application
|
12
|
-
# Add additional load paths for your own custom dirs
|
13
|
-
config.root = File.expand_path('../..',__FILE__)
|
14
|
-
config.active_support.deprecation=:log
|
15
|
-
#config.autoload_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) }
|
16
|
-
config.autoload_paths += [ "#{config.root}/app/#{LOLITA_ORM}" ]
|
17
|
-
|
18
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
19
|
-
config.filter_parameters << :password
|
20
|
-
|
21
|
-
config.action_mailer.default_url_options = { :host => "localhost:3000" }
|
22
|
-
config.encoding = "utf-8"
|
23
|
-
|
24
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
25
|
-
config.filter_parameters += [:password]
|
26
|
-
|
27
|
-
# Enable the asset pipeline
|
28
|
-
config.assets.enabled = true
|
29
|
-
|
30
|
-
# Version of your assets, change this if you want to expire all your assets
|
31
|
-
config.assets.version = '1.0'
|
32
|
-
end
|
33
|
-
end
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
require "action_controller/railtie"
|
3
|
+
require "action_mailer/railtie"
|
4
|
+
require "active_resource/railtie"
|
5
|
+
require "rails/test_unit/railtie"
|
6
|
+
require "sprockets/railtie"
|
7
|
+
|
8
|
+
Bundler.require(:default, LOLITA_ORM, Rails.env) if defined?(Bundler)
|
9
|
+
|
10
|
+
module RailsApp
|
11
|
+
class Application < Rails::Application
|
12
|
+
# Add additional load paths for your own custom dirs
|
13
|
+
config.root = File.expand_path('../..',__FILE__)
|
14
|
+
config.active_support.deprecation=:log
|
15
|
+
#config.autoload_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) }
|
16
|
+
config.autoload_paths += [ "#{config.root}/app/#{LOLITA_ORM}" ]
|
17
|
+
|
18
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
19
|
+
config.filter_parameters << :password
|
20
|
+
|
21
|
+
config.action_mailer.default_url_options = { :host => "localhost:3000" }
|
22
|
+
config.encoding = "utf-8"
|
23
|
+
|
24
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
25
|
+
config.filter_parameters += [:password]
|
26
|
+
|
27
|
+
# Enable the asset pipeline
|
28
|
+
config.assets.enabled = true
|
29
|
+
|
30
|
+
# Version of your assets, change this if you want to expire all your assets
|
31
|
+
config.assets.version = '1.0'
|
32
|
+
end
|
33
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
|
3
|
-
LOLITA_ORM=:mongoid unless defined?(LOLITA_ORM)
|
4
|
-
|
5
|
-
# Set up gems listed in the Gemfile.
|
6
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
7
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
LOLITA_ORM=:mongoid unless defined?(LOLITA_ORM)
|
4
|
+
|
5
|
+
# Set up gems listed in the Gemfile.
|
6
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
7
|
+
|
8
8
|
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# Load the rails application
|
2
|
-
require File.expand_path('../application', __FILE__)
|
3
|
-
|
4
|
-
# Initialize the rails application
|
5
|
-
RailsApp::Application.initialize!
|
1
|
+
# Load the rails application
|
2
|
+
require File.expand_path('../application', __FILE__)
|
3
|
+
|
4
|
+
# Initialize the rails application
|
5
|
+
RailsApp::Application.initialize!
|
@@ -1,23 +1,23 @@
|
|
1
|
-
RailsApp::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
# Do not compress assets
|
4
|
-
config.assets.compress = false
|
5
|
-
|
6
|
-
# Expands the lines which load the assets
|
7
|
-
config.assets.debug = true
|
8
|
-
# In the development environment your application's code is reloaded on
|
9
|
-
# every request. This slows down response time but is perfect for development
|
10
|
-
# since you don't have to restart the webserver when you make code changes.
|
11
|
-
config.cache_classes = false
|
12
|
-
|
13
|
-
# Log error messages when you accidentally call methods on nil.
|
14
|
-
config.whiny_nils = true
|
15
|
-
|
16
|
-
# Show full error reports and disable caching
|
17
|
-
config.consider_all_requests_local = true
|
18
|
-
|
19
|
-
config.action_controller.perform_caching = false
|
20
|
-
|
21
|
-
# Don't care if the mailer can't send
|
22
|
-
config.action_mailer.raise_delivery_errors = false
|
23
|
-
end
|
1
|
+
RailsApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
+
# Do not compress assets
|
4
|
+
config.assets.compress = false
|
5
|
+
|
6
|
+
# Expands the lines which load the assets
|
7
|
+
config.assets.debug = true
|
8
|
+
# In the development environment your application's code is reloaded on
|
9
|
+
# every request. This slows down response time but is perfect for development
|
10
|
+
# since you don't have to restart the webserver when you make code changes.
|
11
|
+
config.cache_classes = false
|
12
|
+
|
13
|
+
# Log error messages when you accidentally call methods on nil.
|
14
|
+
config.whiny_nils = true
|
15
|
+
|
16
|
+
# Show full error reports and disable caching
|
17
|
+
config.consider_all_requests_local = true
|
18
|
+
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Don't care if the mailer can't send
|
22
|
+
config.action_mailer.raise_delivery_errors = false
|
23
|
+
end
|
@@ -1,37 +1,37 @@
|
|
1
|
-
RailsApp::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
# Do not compress assets
|
4
|
-
config.assets.compress = false
|
5
|
-
|
6
|
-
# Expands the lines which load the assets
|
7
|
-
config.assets.debug = true
|
8
|
-
# The production environment is meant for finished, "live" apps.
|
9
|
-
# Code is not reloaded between requests
|
10
|
-
config.cache_classes = true
|
11
|
-
|
12
|
-
# Full error reports are disabled and caching is turned on
|
13
|
-
config.consider_all_requests_local = false
|
14
|
-
config.action_controller.perform_caching = true
|
15
|
-
|
16
|
-
# See everything in the log (default is :info)
|
17
|
-
# config.log_level = :debug
|
18
|
-
|
19
|
-
# Use a different logger for distributed setups
|
20
|
-
# config.logger = SyslogLogger.new
|
21
|
-
|
22
|
-
# Use a different cache store in production
|
23
|
-
# config.cache_store = :mem_cache_store
|
24
|
-
|
25
|
-
# Disable Rails's static asset server
|
26
|
-
# In production, Apache or nginx will already do this
|
27
|
-
config.serve_static_assets = false
|
28
|
-
|
29
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
30
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
31
|
-
|
32
|
-
# Disable delivery errors, bad email addresses will be ignored
|
33
|
-
# config.action_mailer.raise_delivery_errors = false
|
34
|
-
|
35
|
-
# Enable threaded mode
|
36
|
-
# config.threadsafe!
|
37
|
-
end
|
1
|
+
RailsApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
+
# Do not compress assets
|
4
|
+
config.assets.compress = false
|
5
|
+
|
6
|
+
# Expands the lines which load the assets
|
7
|
+
config.assets.debug = true
|
8
|
+
# The production environment is meant for finished, "live" apps.
|
9
|
+
# Code is not reloaded between requests
|
10
|
+
config.cache_classes = true
|
11
|
+
|
12
|
+
# Full error reports are disabled and caching is turned on
|
13
|
+
config.consider_all_requests_local = false
|
14
|
+
config.action_controller.perform_caching = true
|
15
|
+
|
16
|
+
# See everything in the log (default is :info)
|
17
|
+
# config.log_level = :debug
|
18
|
+
|
19
|
+
# Use a different logger for distributed setups
|
20
|
+
# config.logger = SyslogLogger.new
|
21
|
+
|
22
|
+
# Use a different cache store in production
|
23
|
+
# config.cache_store = :mem_cache_store
|
24
|
+
|
25
|
+
# Disable Rails's static asset server
|
26
|
+
# In production, Apache or nginx will already do this
|
27
|
+
config.serve_static_assets = false
|
28
|
+
|
29
|
+
# Enable serving of images, stylesheets, and javascripts from an asset server
|
30
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
31
|
+
|
32
|
+
# Disable delivery errors, bad email addresses will be ignored
|
33
|
+
# config.action_mailer.raise_delivery_errors = false
|
34
|
+
|
35
|
+
# Enable threaded mode
|
36
|
+
# config.threadsafe!
|
37
|
+
end
|
@@ -1,37 +1,37 @@
|
|
1
|
-
RailsApp::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
# Do not compress assets
|
4
|
-
config.assets.compress = false
|
5
|
-
|
6
|
-
# Expands the lines which load the assets
|
7
|
-
config.assets.debug = true
|
8
|
-
# The test environment is used exclusively to run your application's
|
9
|
-
# test suite. You never need to work with it otherwise. Remember that
|
10
|
-
# your test database is "scratch space" for the test suite and is wiped
|
11
|
-
# and recreated between test runs. Don't rely on the data there!
|
12
|
-
config.cache_classes = true
|
13
|
-
|
14
|
-
# Log error messages when you accidentally call methods on nil.
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
|
-
# Show full error reports and disable caching
|
18
|
-
config.consider_all_requests_local = true
|
19
|
-
config.action_controller.perform_caching = false
|
20
|
-
|
21
|
-
# Disable request forgery protection in test environment
|
22
|
-
config.action_controller.allow_forgery_protection = false
|
23
|
-
|
24
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
25
|
-
# The :test delivery method accumulates sent emails in the
|
26
|
-
# ActionMailer::Base.deliveries array.
|
27
|
-
config.action_mailer.delivery_method = :test
|
28
|
-
|
29
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
30
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
31
|
-
# like if you have constraints or database-specific column types
|
32
|
-
# config.active_record.schema_format = :sql
|
33
|
-
|
34
|
-
config.action_dispatch.show_exceptions = false
|
35
|
-
|
36
|
-
config.active_support.deprecation = :stderr
|
37
|
-
end
|
1
|
+
RailsApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
+
# Do not compress assets
|
4
|
+
config.assets.compress = false
|
5
|
+
|
6
|
+
# Expands the lines which load the assets
|
7
|
+
config.assets.debug = true
|
8
|
+
# The test environment is used exclusively to run your application's
|
9
|
+
# test suite. You never need to work with it otherwise. Remember that
|
10
|
+
# your test database is "scratch space" for the test suite and is wiped
|
11
|
+
# and recreated between test runs. Don't rely on the data there!
|
12
|
+
config.cache_classes = true
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil.
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Disable request forgery protection in test environment
|
22
|
+
config.action_controller.allow_forgery_protection = false
|
23
|
+
|
24
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
25
|
+
# The :test delivery method accumulates sent emails in the
|
26
|
+
# ActionMailer::Base.deliveries array.
|
27
|
+
config.action_mailer.delivery_method = :test
|
28
|
+
|
29
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
30
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
31
|
+
# like if you have constraints or database-specific column types
|
32
|
+
# config.active_record.schema_format = :sql
|
33
|
+
|
34
|
+
config.action_dispatch.show_exceptions = false
|
35
|
+
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
end
|