the_role 2.5.4 → 3.0.0

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.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +178 -526
  3. data/gem_version.rb +3 -0
  4. data/lib/the_role/version.rb +1 -3
  5. data/lib/the_role.rb +3 -41
  6. data/the_role.gemspec +5 -5
  7. metadata +20 -231
  8. data/.ruby-gemset.example +0 -1
  9. data/.ruby-version.example +0 -1
  10. data/.rvmrc.example +0 -1
  11. data/.travis.yml +0 -5
  12. data/Bye_bye_CanCan_I_got_the_Role.png +0 -0
  13. data/app/controllers/admin/role_sections_controller.rb +0 -90
  14. data/app/controllers/admin/roles_controller.rb +0 -74
  15. data/app/controllers/concerns/controller.rb +0 -23
  16. data/app/models/_templates_/role.rb +0 -3
  17. data/app/models/concerns/base.rb +0 -37
  18. data/app/models/concerns/role.rb +0 -156
  19. data/app/models/concerns/user.rb +0 -57
  20. data/config/locales/en.yml +0 -44
  21. data/config/locales/es.yml +0 -42
  22. data/config/locales/nl.yml +0 -44
  23. data/config/locales/pl.yml +0 -43
  24. data/config/locales/pt_BR.yml +0 -43
  25. data/config/locales/ru.yml +0 -43
  26. data/config/locales/zh_CN.yml +0 -42
  27. data/config/routes.rb +0 -23
  28. data/db/migrate/20111025025129_create_roles.rb +0 -23
  29. data/docs/2.1.1.png +0 -0
  30. data/lib/generators/the_role/USAGE +0 -32
  31. data/lib/generators/the_role/templates/the_role.rb +0 -11
  32. data/lib/generators/the_role/the_role_generator.rb +0 -64
  33. data/lib/tasks/roles.rake +0 -137
  34. data/lib/the_role/activerecord.rb +0 -11
  35. data/lib/the_role/config.rb +0 -30
  36. data/lib/the_role/hash.rb +0 -58
  37. data/lib/the_role/the_class_exists.rb +0 -8
  38. data/pic.png +0 -0
  39. data/spec/dummy_app/.gitignore +0 -18
  40. data/spec/dummy_app/.rspec +0 -1
  41. data/spec/dummy_app/Gemfile +0 -43
  42. data/spec/dummy_app/README.md +0 -39
  43. data/spec/dummy_app/Rakefile +0 -6
  44. data/spec/dummy_app/app/assets/images/.keep +0 -0
  45. data/spec/dummy_app/app/assets/javascripts/application.js +0 -17
  46. data/spec/dummy_app/app/assets/stylesheets/app/style.css.scss +0 -23
  47. data/spec/dummy_app/app/assets/stylesheets/application.css +0 -3
  48. data/spec/dummy_app/app/controllers/application_controller.rb +0 -38
  49. data/spec/dummy_app/app/controllers/concerns/.keep +0 -0
  50. data/spec/dummy_app/app/controllers/pages_controller.rb +0 -75
  51. data/spec/dummy_app/app/controllers/users_controller.rb +0 -32
  52. data/spec/dummy_app/app/controllers/welcome_controller.rb +0 -13
  53. data/spec/dummy_app/app/helpers/application_helper.rb +0 -2
  54. data/spec/dummy_app/app/mailers/.keep +0 -0
  55. data/spec/dummy_app/app/models/.keep +0 -0
  56. data/spec/dummy_app/app/models/concerns/.keep +0 -0
  57. data/spec/dummy_app/app/models/page.rb +0 -24
  58. data/spec/dummy_app/app/models/role.rb +0 -4
  59. data/spec/dummy_app/app/models/user.rb +0 -21
  60. data/spec/dummy_app/app/views/layouts/_current_user_info.html.haml +0 -17
  61. data/spec/dummy_app/app/views/layouts/application.html.haml +0 -68
  62. data/spec/dummy_app/app/views/pages/_form.html.haml +0 -19
  63. data/spec/dummy_app/app/views/pages/edit.html.haml +0 -7
  64. data/spec/dummy_app/app/views/pages/index.html.haml +0 -27
  65. data/spec/dummy_app/app/views/pages/manage.html.haml +0 -23
  66. data/spec/dummy_app/app/views/pages/my.html.haml +0 -10
  67. data/spec/dummy_app/app/views/pages/new.html.haml +0 -5
  68. data/spec/dummy_app/app/views/pages/show.html.haml +0 -15
  69. data/spec/dummy_app/app/views/users/edit.html.haml +0 -34
  70. data/spec/dummy_app/app/views/welcome/index.html.haml +0 -38
  71. data/spec/dummy_app/app/views/welcome/profile.html.haml +0 -2
  72. data/spec/dummy_app/bin/bundle +0 -3
  73. data/spec/dummy_app/bin/rails +0 -4
  74. data/spec/dummy_app/bin/rake +0 -4
  75. data/spec/dummy_app/config/application.rb +0 -25
  76. data/spec/dummy_app/config/boot.rb +0 -4
  77. data/spec/dummy_app/config/database.yml +0 -17
  78. data/spec/dummy_app/config/environment.rb +0 -5
  79. data/spec/dummy_app/config/environments/development.rb +0 -29
  80. data/spec/dummy_app/config/environments/production.rb +0 -80
  81. data/spec/dummy_app/config/environments/test.rb +0 -36
  82. data/spec/dummy_app/config/initializers/backtrace_silencers.rb +0 -7
  83. data/spec/dummy_app/config/initializers/devise.rb +0 -227
  84. data/spec/dummy_app/config/initializers/filter_parameter_logging.rb +0 -4
  85. data/spec/dummy_app/config/initializers/inflections.rb +0 -16
  86. data/spec/dummy_app/config/initializers/mime_types.rb +0 -5
  87. data/spec/dummy_app/config/initializers/secret_token.rb +0 -12
  88. data/spec/dummy_app/config/initializers/session_store.rb +0 -3
  89. data/spec/dummy_app/config/initializers/the_role.rb +0 -6
  90. data/spec/dummy_app/config/initializers/wrap_parameters.rb +0 -14
  91. data/spec/dummy_app/config/locales/devise.en.yml +0 -57
  92. data/spec/dummy_app/config/locales/en.yml +0 -7
  93. data/spec/dummy_app/config/locales/ru.yml +0 -4
  94. data/spec/dummy_app/config/routes.rb +0 -26
  95. data/spec/dummy_app/config.ru +0 -4
  96. data/spec/dummy_app/db/migrate/20120212061952_devise_create_users.rb +0 -63
  97. data/spec/dummy_app/db/migrate/20120212063249_create_roles.rb +0 -18
  98. data/spec/dummy_app/db/migrate/20120314061307_create_pages.rb +0 -14
  99. data/spec/dummy_app/db/schema.rb +0 -59
  100. data/spec/dummy_app/db/seeds.rb +0 -85
  101. data/spec/dummy_app/lib/assets/.keep +0 -0
  102. data/spec/dummy_app/lib/tasks/.keep +0 -0
  103. data/spec/dummy_app/lib/tasks/assets.rake +0 -15
  104. data/spec/dummy_app/lib/tasks/db_bootstrap.rake +0 -16
  105. data/spec/dummy_app/log/.keep +0 -0
  106. data/spec/dummy_app/public/404.html +0 -58
  107. data/spec/dummy_app/public/422.html +0 -58
  108. data/spec/dummy_app/public/500.html +0 -57
  109. data/spec/dummy_app/public/favicon.ico +0 -0
  110. data/spec/dummy_app/public/robots.txt +0 -5
  111. data/spec/dummy_app/spec/controllers/admin_roles_controller_spec.rb +0 -52
  112. data/spec/dummy_app/spec/controllers/pages_controller_spec.rb +0 -141
  113. data/spec/dummy_app/spec/controllers/welcome_controller_spec.rb +0 -66
  114. data/spec/dummy_app/spec/factories/page.rb +0 -6
  115. data/spec/dummy_app/spec/factories/role.rb +0 -55
  116. data/spec/dummy_app/spec/factories/user.rb +0 -11
  117. data/spec/dummy_app/spec/models/hash_spec.rb +0 -272
  118. data/spec/dummy_app/spec/models/param_process_spec.rb +0 -39
  119. data/spec/dummy_app/spec/models/role_spec.rb +0 -218
  120. data/spec/dummy_app/spec/models/user_spec.rb +0 -164
  121. data/spec/dummy_app/spec/routing/admin_roles_routing_spec.rb +0 -41
  122. data/spec/dummy_app/spec/routing/pages_routing_spec.rb +0 -35
  123. data/spec/dummy_app/spec/spec_helper.rb +0 -68
  124. data/spec/dummy_app/vendor/assets/javascripts/.keep +0 -0
  125. data/spec/dummy_app/vendor/assets/stylesheets/.keep +0 -0
  126. data/the_role.yml.teamocil.example +0 -11
@@ -1,68 +0,0 @@
1
- !!!
2
- %html
3
- %head
4
- %title TheRoleTestcase
5
- = stylesheet_link_tag :application
6
- = javascript_include_tag :application
7
- = stylesheet_link_tag "http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css"
8
-
9
- = csrf_meta_tags
10
-
11
- = yield :js
12
- = yield :css
13
-
14
- %body
15
- .container
16
- .row
17
- .col-md-12.header
18
- %h2 TheRole - Authorization Gem for Ruby on Rails with administrative interface.
19
- %h3 Semantic, Flexible, Lightweight
20
-
21
- .row
22
- .col-md-3.manage_panel
23
- = yield :role_sidebar
24
-
25
- %h4 Basic links
26
-
27
- %ul
28
- %li= link_to 'Home', root_path
29
- %li= link_to 'pages/index', pages_path
30
- %li= link_to 'pages/manage', manage_pages_path
31
- %li= link_to 'pages/my', my_pages_path
32
- %li= link_to 'admin/roles', admin_roles_path
33
-
34
- = render :partial => 'layouts/current_user_info'
35
-
36
- .col-md-9.main_content
37
- - if flash[:notice]
38
- .alert.alert-success
39
- %a.close{:href => '#', 'data-dismiss' => :alert } ×
40
- = flash[:notice]
41
-
42
- - if flash[:error]
43
- .alert.alert-danger
44
- %a.close{:href => '#', 'data-dismiss' => :alert } ×
45
- = flash[:error]
46
-
47
- = yield
48
- = yield :role_main
49
-
50
- .row
51
- .col-md-3
52
- %p
53
- = link_to 'TheRole 2', 'https://github.com/the-teacher/the_role'
54
- .col-md-9
55
- %p
56
- = link_to 'en', '/?locale=en'
57
- \|
58
- = link_to 'ru', '/?locale=ru'
59
- \|
60
- = link_to 'es', '/?locale=es'
61
- \|
62
- = link_to 'zh_CN', '/?locale=zh_CN'
63
- \|
64
- = link_to 'pl', '/?locale=pl'
65
- \|
66
- %b
67
- = t '.current_locale'
68
- = I18n.locale
@@ -1,19 +0,0 @@
1
- = form_for @page do |f|
2
- -if @page.errors.any?
3
- #error_explanation
4
- %h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:"
5
- %ul
6
- - @page.errors.full_messages.each do |msg|
7
- %li= msg
8
-
9
- .field
10
- = f.label :user_id
11
- = f.number_field :user_id
12
- .field
13
- = f.label :title
14
- = f.text_field :title
15
- .field
16
- = f.label :content
17
- = f.text_area :content
18
- .actions
19
- = f.submit 'Save'
@@ -1,7 +0,0 @@
1
- %h1 Editing page
2
-
3
- = render 'form'
4
-
5
- = link_to 'Show', @page
6
- \|
7
- = link_to 'Back', pages_path
@@ -1,27 +0,0 @@
1
- %p= link_to 'Back', root_path
2
-
3
- %h1 Listing of #{@pages.count} pages
4
-
5
- %table
6
- %tr
7
- %th Num
8
- %th User
9
- %th Title
10
- %th State
11
- %th
12
- %th
13
- %th
14
-
15
- - @pages.each_with_index do |page, index|
16
- %tr
17
- %td
18
- - if current_user and current_user.owner?(page)
19
- %span{ style: "color:red" }= index.next
20
- - else
21
- = index.next
22
- %td= page.user_id
23
- %td= page.title
24
- %td= page.state
25
- %td= link_to 'Show', page
26
- %td= link_to 'Edit', edit_page_path(page)
27
- %td= link_to 'Destroy', page, :data => { :confirm => 'Are you sure?' }, :method => :delete
@@ -1,23 +0,0 @@
1
- %p= link_to 'Back', root_path
2
-
3
- %h1 Listing of #{@pages.count} pages
4
-
5
- %table
6
- %tr
7
- %th Num
8
- %th User
9
- %th Title
10
- %th State
11
- %th
12
- %th
13
- %th
14
-
15
- - @pages.each_with_index do |page, index|
16
- %tr
17
- %td= index.next
18
- %td= page.user_id
19
- %td= page.title
20
- %td= page.state
21
- %td= link_to 'Show', page
22
- %td= link_to 'Edit', edit_page_path(page)
23
- %td= link_to 'Destroy', page, :data => { :confirm => 'Are you sure?' }, :method => :delete
@@ -1,10 +0,0 @@
1
- %p= link_to 'Back', root_path
2
- %h1 Current user: #{current_user.name}
3
-
4
- %h2 User's pages
5
-
6
- %ol
7
- - @pages.each do |page|
8
- %li
9
- %i user_id: #{page.user_id}
10
- %b= page.title
@@ -1,5 +0,0 @@
1
- %h1 New page
2
-
3
- = render 'form'
4
-
5
- = link_to 'Back', pages_path
@@ -1,15 +0,0 @@
1
- %p#notice= notice
2
-
3
- %p
4
- %b User:
5
- = @page.user_id
6
- %p
7
- %b Title:
8
- = @page.title
9
- %p
10
- %b Content:
11
- = @page.content
12
-
13
- = link_to 'Edit', edit_page_path(@page)
14
- \|
15
- = link_to 'Back', pages_path
@@ -1,34 +0,0 @@
1
- - if flash[:notice]
2
- %p{ :style => 'background: LightGreen; padding: 10px;' }= flash[:notice]
3
-
4
- %h2{ :style => 'color: gray' } Editable User: #{@user.name} | Role: #{@user.role.name}
5
- %h3{ :style => 'color: lightGray' } Current User: #{current_user.name} | Role: #{current_user.role.name}
6
-
7
- %p= link_to 'To index page', '/'
8
-
9
- = form_for @user, :method => :put do |f|
10
- .field
11
- %p= f.label :name
12
- %p= f.text_field :name
13
-
14
- .field
15
- %p= f.label :email
16
- %p= f.text_field :email
17
-
18
- .field
19
- %p= f.label :role_id, 'Protected field'
20
- %p= f.text_field :role_id
21
-
22
- .field
23
- %p= f.label :some_protected_field, 'Protected field'
24
- %p= f.text_field :some_protected_field
25
-
26
- .field
27
- %p= f.submit
28
-
29
-
30
- - if current_user.admin?
31
- = form_tag change_role_path, :method => :put do
32
- = hidden_field_tag :user_id, @user.id
33
- = select_tag :role_id, options_for_select(Role.all.collect{ |r| [r.name, r.id] })
34
- = submit_tag
@@ -1,38 +0,0 @@
1
- %h1 Users info
2
-
3
- %ol
4
- - User.all.each do |user|
5
- %li
6
- %b= user.name
7
- \-
8
- - if user.role
9
- %b role: #{user.role.name}
10
- - else
11
- %b User has not role
12
- \-
13
- |
14
- = link_to 'Login now!', autologin_path(:email => user.email)
15
- %p
16
- %b password:
17
- %i qwerty
18
-
19
- %h1 Edit Users
20
-
21
- %ol
22
- - User.all.each do |user|
23
- - if user.role
24
- %li= link_to "Edit user: #{user.name} [#{user.role.name}]", edit_user_path(user)
25
- - else
26
- %li User #{user.name} has not role
27
-
28
- %h1 Roles info
29
-
30
- %ol
31
- - Role.all.each do |role|
32
- %li
33
- %b= role.name
34
- \-
35
- %i= role.description
36
- \-
37
- - users_list = role.users.map(&:name).join(', ')
38
- %b users: [#{users_list}]
@@ -1,2 +0,0 @@
1
- %h1 Welcome#profile
2
- %p Find me in app/views/welcome/profile.html.haml
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,25 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # Require the gems listed in Gemfile, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(:default, Rails.env)
8
-
9
- I18n.enforce_available_locales = true
10
-
11
- module RailsApp
12
- class Application < Rails::Application
13
- # Settings in config/environments/* take precedence over those specified here.
14
- # Application configuration should go into files in config/initializers
15
- # -- all .rb files in that directory are automatically loaded.
16
-
17
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
18
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
19
- # config.time_zone = 'Central Time (US & Canada)'
20
-
21
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
22
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
23
- # config.i18n.default_locale = :de
24
- end
25
- end
@@ -1,4 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -1,17 +0,0 @@
1
- production:
2
- adapter: sqlite3
3
- database: db/the_role_prod.db
4
- pool: 5
5
- timeout: 5000
6
-
7
- development:
8
- adapter: sqlite3
9
- database: db/the_role_dev.db
10
- pool: 5
11
- timeout: 5000
12
-
13
- test:
14
- adapter: sqlite3
15
- database: db/the_role_test.db
16
- pool: 5
17
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application.
5
- RailsApp::Application.initialize!
@@ -1,29 +0,0 @@
1
- RailsApp::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
- # Raise an error on page load if there are pending migrations
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = true
29
- end
@@ -1,80 +0,0 @@
1
- RailsApp::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
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = true
24
-
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
28
-
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
31
-
32
- # Generate digests for assets URLs.
33
- config.assets.digest = true
34
-
35
- # Version of your assets, change this if you want to expire all your assets.
36
- config.assets.version = '1.0'
37
-
38
- # Specifies the header that your server uses for sending files.
39
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
-
42
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
- # config.force_ssl = true
44
-
45
- # Set to :debug to see everything in the log.
46
- config.log_level = :info
47
-
48
- # Prepend all log lines with the following tags.
49
- # config.log_tags = [ :subdomain, :uuid ]
50
-
51
- # Use a different logger for distributed setups.
52
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
-
54
- # Use a different cache store in production.
55
- # config.cache_store = :mem_cache_store
56
-
57
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
- # config.action_controller.asset_host = "http://assets.example.com"
59
-
60
- # Precompile additional assets.
61
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
- # config.assets.precompile += %w( search.js )
63
-
64
- # Ignore bad email addresses and do not raise email delivery errors.
65
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
- # config.action_mailer.raise_delivery_errors = false
67
-
68
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation can not be found).
70
- config.i18n.fallbacks = true
71
-
72
- # Send deprecation notices to registered listeners.
73
- config.active_support.deprecation = :notify
74
-
75
- # Disable automatic flushing of the log to improve performance.
76
- # config.autoflush_log = false
77
-
78
- # Use default logging formatter so that PID and timestamp are not suppressed.
79
- config.log_formatter = ::Logger::Formatter.new
80
- end
@@ -1,36 +0,0 @@
1
- RailsApp::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
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
17
- config.static_cache_control = "public, max-age=3600"
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Print deprecation notices to the stderr.
35
- config.active_support.deprecation = :stderr
36
- end
@@ -1,7 +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 to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!