paper_trail 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/paper_trail/record_trail.rb +1 -1
- data/lib/paper_trail/version_number.rb +1 -1
- metadata +3 -274
- data/.github/CONTRIBUTING.md +0 -151
- data/.github/ISSUE_TEMPLATE.md +0 -13
- data/.gitignore +0 -23
- data/.rspec +0 -2
- data/.rubocop.yml +0 -135
- data/.rubocop_todo.yml +0 -41
- data/.travis.yml +0 -41
- data/Appraisals +0 -26
- data/CHANGELOG.md +0 -739
- data/Gemfile +0 -2
- data/MIT-LICENSE +0 -20
- data/README.md +0 -1613
- data/Rakefile +0 -38
- data/doc/bug_report_template.rb +0 -73
- data/doc/triage.md +0 -27
- data/doc/warning_about_not_setting_whodunnit.md +0 -33
- data/gemfiles/ar_4.0.gemfile +0 -7
- data/gemfiles/ar_4.2.gemfile +0 -7
- data/gemfiles/ar_5.0.gemfile +0 -8
- data/gemfiles/ar_5.1.gemfile +0 -8
- data/gemfiles/ar_master.gemfile +0 -9
- data/lib/generators/paper_trail/default_initializer.rb +0 -0
- data/paper_trail.gemspec +0 -49
- data/spec/controllers/articles_controller_spec.rb +0 -28
- data/spec/controllers/widgets_controller_spec.rb +0 -85
- data/spec/dummy_app/Rakefile +0 -7
- data/spec/dummy_app/app/controllers/application_controller.rb +0 -30
- data/spec/dummy_app/app/controllers/articles_controller.rb +0 -16
- data/spec/dummy_app/app/controllers/test_controller.rb +0 -5
- data/spec/dummy_app/app/controllers/widgets_controller.rb +0 -28
- data/spec/dummy_app/app/models/animal.rb +0 -4
- data/spec/dummy_app/app/models/article.rb +0 -25
- data/spec/dummy_app/app/models/authorship.rb +0 -5
- data/spec/dummy_app/app/models/bar_habtm.rb +0 -4
- data/spec/dummy_app/app/models/book.rb +0 -9
- data/spec/dummy_app/app/models/boolit.rb +0 -4
- data/spec/dummy_app/app/models/callback_modifier.rb +0 -45
- data/spec/dummy_app/app/models/car.rb +0 -3
- data/spec/dummy_app/app/models/cat.rb +0 -2
- data/spec/dummy_app/app/models/chapter.rb +0 -9
- data/spec/dummy_app/app/models/citation.rb +0 -5
- data/spec/dummy_app/app/models/custom_primary_key_record.rb +0 -15
- data/spec/dummy_app/app/models/customer.rb +0 -4
- data/spec/dummy_app/app/models/document.rb +0 -8
- data/spec/dummy_app/app/models/dog.rb +0 -2
- data/spec/dummy_app/app/models/editor.rb +0 -4
- data/spec/dummy_app/app/models/editorship.rb +0 -5
- data/spec/dummy_app/app/models/elephant.rb +0 -3
- data/spec/dummy_app/app/models/fluxor.rb +0 -3
- data/spec/dummy_app/app/models/foo_habtm.rb +0 -5
- data/spec/dummy_app/app/models/foo_widget.rb +0 -2
- data/spec/dummy_app/app/models/fruit.rb +0 -5
- data/spec/dummy_app/app/models/gadget.rb +0 -3
- data/spec/dummy_app/app/models/kitchen/banana.rb +0 -5
- data/spec/dummy_app/app/models/legacy_widget.rb +0 -6
- data/spec/dummy_app/app/models/line_item.rb +0 -4
- data/spec/dummy_app/app/models/not_on_update.rb +0 -4
- data/spec/dummy_app/app/models/on/create.rb +0 -6
- data/spec/dummy_app/app/models/on/destroy.rb +0 -6
- data/spec/dummy_app/app/models/on/empty_array.rb +0 -6
- data/spec/dummy_app/app/models/on/update.rb +0 -6
- data/spec/dummy_app/app/models/order.rb +0 -5
- data/spec/dummy_app/app/models/paragraph.rb +0 -5
- data/spec/dummy_app/app/models/person.rb +0 -39
- data/spec/dummy_app/app/models/post.rb +0 -3
- data/spec/dummy_app/app/models/post_with_status.rb +0 -7
- data/spec/dummy_app/app/models/quotation.rb +0 -5
- data/spec/dummy_app/app/models/section.rb +0 -6
- data/spec/dummy_app/app/models/skipper.rb +0 -3
- data/spec/dummy_app/app/models/song.rb +0 -37
- data/spec/dummy_app/app/models/thing.rb +0 -3
- data/spec/dummy_app/app/models/translation.rb +0 -11
- data/spec/dummy_app/app/models/truck.rb +0 -4
- data/spec/dummy_app/app/models/vehicle.rb +0 -4
- data/spec/dummy_app/app/models/whatchamajigger.rb +0 -4
- data/spec/dummy_app/app/models/widget.rb +0 -8
- data/spec/dummy_app/app/models/wotsit.rb +0 -8
- data/spec/dummy_app/app/versions/custom_primary_key_record_version.rb +0 -3
- data/spec/dummy_app/app/versions/joined_version.rb +0 -6
- data/spec/dummy_app/app/versions/json_version.rb +0 -3
- data/spec/dummy_app/app/versions/kitchen/banana_version.rb +0 -5
- data/spec/dummy_app/app/versions/post_version.rb +0 -3
- data/spec/dummy_app/config.ru +0 -4
- data/spec/dummy_app/config/application.rb +0 -39
- data/spec/dummy_app/config/boot.rb +0 -24
- data/spec/dummy_app/config/database.mysql.yml +0 -19
- data/spec/dummy_app/config/database.postgres.yml +0 -15
- data/spec/dummy_app/config/database.sqlite.yml +0 -15
- data/spec/dummy_app/config/environment.rb +0 -5
- data/spec/dummy_app/config/environments/development.rb +0 -36
- data/spec/dummy_app/config/environments/production.rb +0 -74
- data/spec/dummy_app/config/environments/test.rb +0 -46
- data/spec/dummy_app/config/initializers/backtrace_silencers.rb +0 -9
- data/spec/dummy_app/config/initializers/inflections.rb +0 -10
- data/spec/dummy_app/config/initializers/mime_types.rb +0 -5
- data/spec/dummy_app/config/initializers/paper_trail.rb +0 -1
- data/spec/dummy_app/config/initializers/secret_token.rb +0 -9
- data/spec/dummy_app/config/initializers/session_store.rb +0 -8
- data/spec/dummy_app/config/locales/en.yml +0 -5
- data/spec/dummy_app/config/routes.rb +0 -4
- data/spec/dummy_app/db/migrate/20110208155312_set_up_test_tables.rb +0 -344
- data/spec/dummy_app/db/schema.rb +0 -298
- data/spec/generators/install_generator_spec.rb +0 -88
- data/spec/models/animal_spec.rb +0 -61
- data/spec/models/article_spec.rb +0 -186
- data/spec/models/boolit_spec.rb +0 -41
- data/spec/models/callback_modifier_spec.rb +0 -92
- data/spec/models/car_spec.rb +0 -13
- data/spec/models/custom_primary_key_record_spec.rb +0 -18
- data/spec/models/document_spec.rb +0 -57
- data/spec/models/gadget_spec.rb +0 -63
- data/spec/models/joined_version_spec.rb +0 -41
- data/spec/models/json_version_spec.rb +0 -101
- data/spec/models/kitchen/banana_spec.rb +0 -14
- data/spec/models/legacy_widget_spec.rb +0 -40
- data/spec/models/not_on_update_spec.rb +0 -22
- data/spec/models/on/create_spec.rb +0 -27
- data/spec/models/on/destroy_spec.rb +0 -27
- data/spec/models/on/empty_array_spec.rb +0 -30
- data/spec/models/on/update_spec.rb +0 -27
- data/spec/models/post_with_status_spec.rb +0 -46
- data/spec/models/skipper_spec.rb +0 -42
- data/spec/models/thing_spec.rb +0 -11
- data/spec/models/translation_spec.rb +0 -70
- data/spec/models/vehicle_spec.rb +0 -5
- data/spec/models/version_spec.rb +0 -282
- data/spec/models/widget_spec.rb +0 -338
- data/spec/modules/paper_trail_spec.rb +0 -27
- data/spec/modules/version_concern_spec.rb +0 -28
- data/spec/modules/version_number_spec.rb +0 -18
- data/spec/paper_trail/associations_spec.rb +0 -965
- data/spec/paper_trail/cleaner_spec.rb +0 -152
- data/spec/paper_trail/config_spec.rb +0 -45
- data/spec/paper_trail/model_spec.rb +0 -992
- data/spec/paper_trail/serializer_spec.rb +0 -85
- data/spec/paper_trail/serializers/custom_json_serializer_spec.rb +0 -18
- data/spec/paper_trail/serializers/custom_yaml_serializer_spec.rb +0 -45
- data/spec/paper_trail/serializers/json_spec.rb +0 -57
- data/spec/paper_trail/serializers/yaml_spec.rb +0 -42
- data/spec/paper_trail/thread_safety_spec.rb +0 -44
- data/spec/paper_trail/version_limit_spec.rb +0 -55
- data/spec/paper_trail/version_spec.rb +0 -96
- data/spec/paper_trail_spec.rb +0 -122
- data/spec/requests/articles_spec.rb +0 -34
- data/spec/spec_helper.rb +0 -78
- data/spec/support/alt_db_init.rb +0 -54
- data/spec/support/custom_json_serializer.rb +0 -13
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Demonstrates the `if` and `unless` configuration options.
|
|
2
|
-
class Translation < ActiveRecord::Base
|
|
3
|
-
# Has a `type` column, but it's not used for STI.
|
|
4
|
-
# TODO: rename column
|
|
5
|
-
self.inheritance_column = nil
|
|
6
|
-
|
|
7
|
-
has_paper_trail(
|
|
8
|
-
if: proc { |t| t.language_code == "US" },
|
|
9
|
-
unless: proc { |t| t.type == "DRAFT" }
|
|
10
|
-
)
|
|
11
|
-
end
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# The purpose of this custom version class is to test the scope methods on the
|
|
2
|
-
# VersionConcern::ClassMethods module. See
|
|
3
|
-
# https://github.com/airblade/paper_trail/issues/295 for more details.
|
|
4
|
-
class JoinedVersion < PaperTrail::Version
|
|
5
|
-
default_scope { joins("INNER JOIN widgets ON widgets.id = versions.item_id") }
|
|
6
|
-
end
|
data/spec/dummy_app/config.ru
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
|
|
7
|
-
Bundler.require(:default, Rails.env)
|
|
8
|
-
require "paper_trail"
|
|
9
|
-
|
|
10
|
-
module Dummy
|
|
11
|
-
class Application < Rails::Application
|
|
12
|
-
config.encoding = "utf-8"
|
|
13
|
-
config.filter_parameters += [:password]
|
|
14
|
-
config.active_support.escape_html_entities_in_json = true
|
|
15
|
-
config.active_support.test_order = :sorted
|
|
16
|
-
|
|
17
|
-
# Disable assets in rails 4.2. In rails 5, config does not respond to
|
|
18
|
-
# assets, probably because it was moved out of railties to some other gem,
|
|
19
|
-
# and we only have dev. dependencies on railties, not all of rails. When
|
|
20
|
-
# we drop support for rails 4.2, we can remove this whole conditional.
|
|
21
|
-
if config.respond_to?(:assets)
|
|
22
|
-
config.assets.enabled = false
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
config.secret_key_base = "A fox regularly kicked the screaming pile of biscuits."
|
|
26
|
-
|
|
27
|
-
# `raise_in_transactional_callbacks` was added in rails 4, then deprecated
|
|
28
|
-
# in rails 5. Oh, how fickle are the gods.
|
|
29
|
-
if ActiveRecord.respond_to?(:gem_version)
|
|
30
|
-
v = ActiveRecord.gem_version
|
|
31
|
-
if v >= Gem::Version.new("4.2") && v < Gem::Version.new("5.0.0.beta1")
|
|
32
|
-
config.active_record.raise_in_transactional_callbacks = true
|
|
33
|
-
end
|
|
34
|
-
if v >= Gem::Version.new("5.0.0.beta1")
|
|
35
|
-
config.active_record.time_zone_aware_types = [:datetime]
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
require "rubygems"
|
|
2
|
-
|
|
3
|
-
# We normally use the root project Gemfile (and gemspec), but when we run rake
|
|
4
|
-
# locally (not on travis) in this dummy app, we set the BUNDLE_GEMFILE env.
|
|
5
|
-
# variable. The project Gemfile/gemspec allows AR 4.0, which is a problem
|
|
6
|
-
# because this dummy app uses `enum` in some of its models, and `enum` was
|
|
7
|
-
# introduced in AR 4.1. So, when we run rake here, we use:
|
|
8
|
-
#
|
|
9
|
-
# BUNDLE_GEMFILE=../../gemfiles/ar_4.2.gemfile bundle exec rake
|
|
10
|
-
#
|
|
11
|
-
# Once we drop support for AR 4.0 and 4.1 this will be less of a problem, but
|
|
12
|
-
# we should keep the ability to specify BUNDLE_GEMFILE because the same
|
|
13
|
-
# situation could come up in the future.
|
|
14
|
-
unless ENV.key?("BUNDLE_GEMFILE")
|
|
15
|
-
gemfile = File.expand_path("../../../../Gemfile", __FILE__)
|
|
16
|
-
if File.exist?(gemfile)
|
|
17
|
-
puts "Booting PT test dummy app: Using gemfile: #{gemfile}"
|
|
18
|
-
ENV["BUNDLE_GEMFILE"] = gemfile
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
require "bundler"
|
|
22
|
-
Bundler.setup
|
|
23
|
-
|
|
24
|
-
$LOAD_PATH.unshift(File.expand_path("../../../../lib", __FILE__))
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
test: &test
|
|
2
|
-
adapter: mysql2
|
|
3
|
-
encoding: utf8
|
|
4
|
-
database: paper_trail_test
|
|
5
|
-
pool: 5
|
|
6
|
-
username: root
|
|
7
|
-
password:
|
|
8
|
-
host: localhost
|
|
9
|
-
|
|
10
|
-
# Warning: The database defined as "test" will be erased and
|
|
11
|
-
# re-generated from your development database when you run "rake".
|
|
12
|
-
# Do not set this db to the same as development or production.
|
|
13
|
-
foo:
|
|
14
|
-
<<: *test
|
|
15
|
-
database: paper_trail_foo
|
|
16
|
-
|
|
17
|
-
bar:
|
|
18
|
-
<<: *test
|
|
19
|
-
database: paper_trail_bar
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# SQLite version 3.x
|
|
2
|
-
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
|
3
|
-
test: &test
|
|
4
|
-
adapter: sqlite3
|
|
5
|
-
pool: 5
|
|
6
|
-
timeout: 5000
|
|
7
|
-
database: db/test.sqlite3
|
|
8
|
-
|
|
9
|
-
foo:
|
|
10
|
-
<<: *test
|
|
11
|
-
database: db/test-foo.sqlite3
|
|
12
|
-
|
|
13
|
-
bar:
|
|
14
|
-
<<: *test
|
|
15
|
-
database: db/test-bar.sqlite3
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
# Do not eager load code on boot.
|
|
10
|
-
config.eager_load = false
|
|
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
|
-
# Log the query plan for queries taking more than this (works
|
|
26
|
-
# with SQLite, MySQL, and PostgreSQL)
|
|
27
|
-
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
|
28
|
-
|
|
29
|
-
# Do not compress assets
|
|
30
|
-
config.assets.compress = false
|
|
31
|
-
|
|
32
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
|
33
|
-
# This option may cause significant delays in view rendering with a large
|
|
34
|
-
# number of complex assets.
|
|
35
|
-
config.assets.debug = true
|
|
36
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
# Eager load code on boot. This eager loads most of Rails and
|
|
8
|
-
# your application in memory, allowing both thread web servers
|
|
9
|
-
# and those relying on copy on write to perform better.
|
|
10
|
-
# Rake tasks automatically ignore this option for performance.
|
|
11
|
-
config.eager_load = true
|
|
12
|
-
|
|
13
|
-
# Full error reports are disabled and caching is turned on
|
|
14
|
-
config.consider_all_requests_local = false
|
|
15
|
-
config.action_controller.perform_caching = true
|
|
16
|
-
|
|
17
|
-
# Disable Rails's static asset server (Apache or nginx will already do this)
|
|
18
|
-
config.serve_static_assets = false
|
|
19
|
-
|
|
20
|
-
# Compress JavaScripts and CSS
|
|
21
|
-
config.assets.compress = true
|
|
22
|
-
|
|
23
|
-
# Don't fallback to assets pipeline if a precompiled asset is missed
|
|
24
|
-
config.assets.compile = false
|
|
25
|
-
|
|
26
|
-
# Generate digests for assets URLs
|
|
27
|
-
config.assets.digest = true
|
|
28
|
-
|
|
29
|
-
# Defaults to nil and saved in location specified by config.assets.prefix
|
|
30
|
-
# config.assets.manifest = YOUR_PATH
|
|
31
|
-
|
|
32
|
-
# Specifies the header that your server uses for sending files
|
|
33
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
|
34
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
|
35
|
-
|
|
36
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
|
37
|
-
# config.force_ssl = true
|
|
38
|
-
|
|
39
|
-
# See everything in the log (default is :info)
|
|
40
|
-
# config.log_level = :debug
|
|
41
|
-
|
|
42
|
-
# Prepend all log lines with the following tags
|
|
43
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
|
44
|
-
|
|
45
|
-
# Use a different logger for distributed setups
|
|
46
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
|
47
|
-
|
|
48
|
-
# Use a different cache store in production
|
|
49
|
-
# config.cache_store = :mem_cache_store
|
|
50
|
-
|
|
51
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
|
52
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
|
53
|
-
|
|
54
|
-
# Precompile additional assets (application.js, application.css, and all
|
|
55
|
-
# non-JS/CSS are already added)
|
|
56
|
-
# config.assets.precompile += %w( search.js )
|
|
57
|
-
|
|
58
|
-
# Disable delivery errors, bad email addresses will be ignored
|
|
59
|
-
# config.action_mailer.raise_delivery_errors = false
|
|
60
|
-
|
|
61
|
-
# Enable threaded mode
|
|
62
|
-
# config.threadsafe!
|
|
63
|
-
|
|
64
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
65
|
-
# the I18n.default_locale when a translation can not be found)
|
|
66
|
-
config.i18n.fallbacks = true
|
|
67
|
-
|
|
68
|
-
# Send deprecation notices to registered listeners
|
|
69
|
-
config.active_support.deprecation = :notify
|
|
70
|
-
|
|
71
|
-
# Log the query plan for queries taking more than this (works
|
|
72
|
-
# with SQLite, MySQL, and PostgreSQL)
|
|
73
|
-
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
|
74
|
-
end
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
Dummy::Application.configure do
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
|
3
|
-
|
|
4
|
-
# The test environment is used exclusively to run your application's
|
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
|
8
|
-
config.cache_classes = true
|
|
9
|
-
|
|
10
|
-
# Eager loads all registered namespaces
|
|
11
|
-
config.eager_load = true
|
|
12
|
-
|
|
13
|
-
if config.respond_to?(:public_file_server)
|
|
14
|
-
config.public_file_server.enabled = true
|
|
15
|
-
elsif config.respond_to?(:serve_static_files=)
|
|
16
|
-
config.serve_static_files = true
|
|
17
|
-
else
|
|
18
|
-
config.serve_static_assets = true
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
if config.respond_to?(:public_file_server)
|
|
22
|
-
config.public_file_server.headers = {
|
|
23
|
-
"Cache-Control" => "public, max-age=3600"
|
|
24
|
-
}
|
|
25
|
-
else
|
|
26
|
-
config.static_cache_control = "public, max-age=3600"
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
# Show full error reports and disable caching
|
|
30
|
-
config.consider_all_requests_local = true
|
|
31
|
-
config.action_controller.perform_caching = false
|
|
32
|
-
|
|
33
|
-
# Raise exceptions instead of rendering exception templates
|
|
34
|
-
config.action_dispatch.show_exceptions = false
|
|
35
|
-
|
|
36
|
-
# Disable request forgery protection in test environment
|
|
37
|
-
config.action_controller.allow_forgery_protection = false
|
|
38
|
-
|
|
39
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
|
40
|
-
# The :test delivery method accumulates sent emails in the
|
|
41
|
-
# ActionMailer::Base.deliveries array.
|
|
42
|
-
# config.action_mailer.delivery_method = :test
|
|
43
|
-
|
|
44
|
-
# Print deprecation notices to the stderr
|
|
45
|
-
config.active_support.deprecation = :stderr
|
|
46
|
-
end
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish
|
|
4
|
-
# to see in your backtraces.
|
|
5
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
|
6
|
-
|
|
7
|
-
# You can also remove all the silencers if you're trying to debug a problem that
|
|
8
|
-
# might stem from framework code.
|
|
9
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Add new inflection rules using the following format
|
|
4
|
-
# (all these examples are active by default):
|
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
|
8
|
-
# inflect.irregular 'person', 'people'
|
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
|
10
|
-
# end
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
PaperTrail.config.track_associations = true
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Your secret key for verifying the integrity of signed cookies.
|
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
|
5
|
-
# Make sure the secret is at least 30 characters and all random,
|
|
6
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
|
7
|
-
Dummy::Application.config.secret_token = "99c0312cf416079a8c7ccc63acb1e9f4f" +
|
|
8
|
-
"17741398ec8022a2f4fb509c57f55b72486573e9816a026f507efbcd452a9e954d45c93c" +
|
|
9
|
-
"95d5bacd87e664ad6805d3f"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
Dummy::Application.config.session_store :cookie_store, key: "_dummy_session"
|
|
4
|
-
|
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
|
6
|
-
# which shouldn't be used to store highly confidential information
|
|
7
|
-
# (create the session table with "rails generate session_migration")
|
|
8
|
-
# Dummy::Application.config.session_store :active_record_store
|