typus 3.0.11.rc5 → 3.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/.gitmodules +3 -0
  2. data/app/views/admin/templates/_text_with_ckeditor.html.erb +13 -0
  3. data/lib/typus/version.rb +1 -1
  4. metadata +20 -272
  5. data/test/fixtures/rails_app/.gitignore +0 -4
  6. data/test/fixtures/rails_app/Capfile +0 -6
  7. data/test/fixtures/rails_app/README +0 -256
  8. data/test/fixtures/rails_app/Rakefile +0 -7
  9. data/test/fixtures/rails_app/app/controllers/admin/animals_controller.rb +0 -2
  10. data/test/fixtures/rails_app/app/controllers/admin/articles_controller.rb +0 -2
  11. data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +0 -51
  12. data/test/fixtures/rails_app/app/controllers/admin/birds_controller.rb +0 -2
  13. data/test/fixtures/rails_app/app/controllers/admin/cases_controller.rb +0 -2
  14. data/test/fixtures/rails_app/app/controllers/admin/categories_controller.rb +0 -2
  15. data/test/fixtures/rails_app/app/controllers/admin/comments_controller.rb +0 -2
  16. data/test/fixtures/rails_app/app/controllers/admin/dogs_controller.rb +0 -2
  17. data/test/fixtures/rails_app/app/controllers/admin/entries_controller.rb +0 -2
  18. data/test/fixtures/rails_app/app/controllers/admin/hits_controller.rb +0 -37
  19. data/test/fixtures/rails_app/app/controllers/admin/image_holders_controller.rb +0 -2
  20. data/test/fixtures/rails_app/app/controllers/admin/invoices_controller.rb +0 -2
  21. data/test/fixtures/rails_app/app/controllers/admin/orders_controller.rb +0 -2
  22. data/test/fixtures/rails_app/app/controllers/admin/pages_controller.rb +0 -7
  23. data/test/fixtures/rails_app/app/controllers/admin/posts_controller.rb +0 -2
  24. data/test/fixtures/rails_app/app/controllers/admin/project_collaborators_controller.rb +0 -2
  25. data/test/fixtures/rails_app/app/controllers/admin/projects_controller.rb +0 -2
  26. data/test/fixtures/rails_app/app/controllers/admin/status_controller.rb +0 -2
  27. data/test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb +0 -2
  28. data/test/fixtures/rails_app/app/controllers/admin/users_controller.rb +0 -2
  29. data/test/fixtures/rails_app/app/controllers/admin/views_controller.rb +0 -8
  30. data/test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb +0 -2
  31. data/test/fixtures/rails_app/app/controllers/admin_user.rb +0 -3
  32. data/test/fixtures/rails_app/app/controllers/application_controller.rb +0 -3
  33. data/test/fixtures/rails_app/app/helpers/application_helper.rb +0 -2
  34. data/test/fixtures/rails_app/app/helpers/form_helper.rb +0 -3
  35. data/test/fixtures/rails_app/app/models/animal.rb +0 -21
  36. data/test/fixtures/rails_app/app/models/article.rb +0 -10
  37. data/test/fixtures/rails_app/app/models/asset.rb +0 -45
  38. data/test/fixtures/rails_app/app/models/bird.rb +0 -2
  39. data/test/fixtures/rails_app/app/models/case.rb +0 -2
  40. data/test/fixtures/rails_app/app/models/category.rb +0 -31
  41. data/test/fixtures/rails_app/app/models/comment.rb +0 -17
  42. data/test/fixtures/rails_app/app/models/delayed/task.rb +0 -5
  43. data/test/fixtures/rails_app/app/models/dog.rb +0 -2
  44. data/test/fixtures/rails_app/app/models/entry.rb +0 -23
  45. data/test/fixtures/rails_app/app/models/hit.rb +0 -27
  46. data/test/fixtures/rails_app/app/models/image_holder.rb +0 -21
  47. data/test/fixtures/rails_app/app/models/invoice.rb +0 -10
  48. data/test/fixtures/rails_app/app/models/order.rb +0 -9
  49. data/test/fixtures/rails_app/app/models/page.rb +0 -24
  50. data/test/fixtures/rails_app/app/models/post.rb +0 -32
  51. data/test/fixtures/rails_app/app/models/project.rb +0 -17
  52. data/test/fixtures/rails_app/app/models/project_collaborator.rb +0 -16
  53. data/test/fixtures/rails_app/app/models/site.rb +0 -16
  54. data/test/fixtures/rails_app/app/models/typus_user.rb +0 -22
  55. data/test/fixtures/rails_app/app/models/user.rb +0 -10
  56. data/test/fixtures/rails_app/app/models/view.rb +0 -19
  57. data/test/fixtures/rails_app/app/views/admin/assets/_index.html.erb +0 -3
  58. data/test/fixtures/rails_app/app/views/admin/cases/_index.html.erb +0 -3
  59. data/test/fixtures/rails_app/app/views/admin/categories/_index.html.erb +0 -3
  60. data/test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb +0 -11
  61. data/test/fixtures/rails_app/app/views/admin/entries/_index.html.erb +0 -3
  62. data/test/fixtures/rails_app/app/views/admin/hits/_edit.html.erb +0 -7
  63. data/test/fixtures/rails_app/app/views/admin/hits/_index.html.erb +0 -3
  64. data/test/fixtures/rails_app/app/views/admin/hits/index.html.erb +0 -28
  65. data/test/fixtures/rails_app/app/views/admin/pages/_index.html.erb +0 -3
  66. data/test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb +0 -1
  67. data/test/fixtures/rails_app/app/views/admin/posts/_index.html.erb +0 -5
  68. data/test/fixtures/rails_app/app/views/admin/posts/_new.html.erb +0 -1
  69. data/test/fixtures/rails_app/app/views/admin/posts/_show.html.erb +0 -1
  70. data/test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb +0 -1
  71. data/test/fixtures/rails_app/app/views/admin/status/index.html.erb +0 -9
  72. data/test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb +0 -1
  73. data/test/fixtures/rails_app/app/views/admin/watch_dog/index.html.erb +0 -9
  74. data/test/fixtures/rails_app/config.ru +0 -4
  75. data/test/fixtures/rails_app/config/application.rb +0 -44
  76. data/test/fixtures/rails_app/config/boot.rb +0 -6
  77. data/test/fixtures/rails_app/config/database.yml +0 -34
  78. data/test/fixtures/rails_app/config/deploy.rb +0 -32
  79. data/test/fixtures/rails_app/config/environment.rb +0 -5
  80. data/test/fixtures/rails_app/config/environments/development.rb +0 -32
  81. data/test/fixtures/rails_app/config/environments/production.rb +0 -54
  82. data/test/fixtures/rails_app/config/environments/test.rb +0 -40
  83. data/test/fixtures/rails_app/config/initializers/backtrace_silencers.rb +0 -7
  84. data/test/fixtures/rails_app/config/initializers/dragonfly.rb +0 -1
  85. data/test/fixtures/rails_app/config/initializers/inflections.rb +0 -12
  86. data/test/fixtures/rails_app/config/initializers/mime_types.rb +0 -5
  87. data/test/fixtures/rails_app/config/initializers/secret_token.rb +0 -7
  88. data/test/fixtures/rails_app/config/initializers/session_store.rb +0 -8
  89. data/test/fixtures/rails_app/config/initializers/typus.rb +0 -5
  90. data/test/fixtures/rails_app/config/initializers/typus_resources.rb +0 -27
  91. data/test/fixtures/rails_app/config/locales/en.yml +0 -5
  92. data/test/fixtures/rails_app/config/mongoid.yml +0 -20
  93. data/test/fixtures/rails_app/config/routes.rb +0 -61
  94. data/test/fixtures/rails_app/config/typus/README +0 -68
  95. data/test/fixtures/rails_app/config/typus/crud_basic.yml +0 -10
  96. data/test/fixtures/rails_app/config/typus/crud_basic_roles.yml +0 -2
  97. data/test/fixtures/rails_app/config/typus/crud_extended.yml +0 -66
  98. data/test/fixtures/rails_app/config/typus/crud_extended_roles.yml +0 -18
  99. data/test/fixtures/rails_app/config/typus/has_many.yml +0 -0
  100. data/test/fixtures/rails_app/config/typus/has_many_roles.yml +0 -0
  101. data/test/fixtures/rails_app/config/typus/has_many_through.yml +0 -23
  102. data/test/fixtures/rails_app/config/typus/has_many_through_roles.yml +0 -4
  103. data/test/fixtures/rails_app/config/typus/has_one.yml +0 -12
  104. data/test/fixtures/rails_app/config/typus/has_one_roles.yml +0 -3
  105. data/test/fixtures/rails_app/config/typus/mongo_db.yml +0 -4
  106. data/test/fixtures/rails_app/config/typus/mongo_db_roles.yml +0 -2
  107. data/test/fixtures/rails_app/config/typus/polymorphic.yml +0 -17
  108. data/test/fixtures/rails_app/config/typus/polymorphic_roles.yml +0 -5
  109. data/test/fixtures/rails_app/config/typus/resource_roles.yml +0 -7
  110. data/test/fixtures/rails_app/config/typus/sti.yml +0 -5
  111. data/test/fixtures/rails_app/config/typus/sti_roles.yml +0 -2
  112. data/test/fixtures/rails_app/config/typus/typus.yml +0 -13
  113. data/test/fixtures/rails_app/config/typus/typus_roles.yml +0 -2
  114. data/test/fixtures/rails_app/config/typus/unknown.yml +0 -3
  115. data/test/fixtures/rails_app/config/typus/unknown_roles.yml +0 -5
  116. data/test/fixtures/rails_app/db/.gitkeep +0 -0
  117. data/test/fixtures/rails_app/db/schema.rb +0 -200
  118. data/test/fixtures/rails_app/db/seeds.rb +0 -54
  119. data/test/fixtures/rails_app/db/seeds/assets/000.jpg +0 -0
  120. data/test/fixtures/rails_app/db/seeds/assets/001.jpg +0 -0
  121. data/test/fixtures/rails_app/db/seeds/assets/002.jpg +0 -0
  122. data/test/fixtures/rails_app/db/seeds/assets/003.jpg +0 -0
  123. data/test/fixtures/rails_app/db/seeds/assets/004.jpg +0 -0
  124. data/test/fixtures/rails_app/public/404.html +0 -26
  125. data/test/fixtures/rails_app/public/422.html +0 -26
  126. data/test/fixtures/rails_app/public/500.html +0 -26
  127. data/test/fixtures/rails_app/public/favicon.ico +0 -0
  128. data/test/fixtures/rails_app/public/images/rails.png +0 -0
  129. data/test/fixtures/rails_app/public/robots.txt +0 -5
  130. data/test/fixtures/rails_app/public/stylesheets/.gitkeep +0 -0
  131. data/test/fixtures/rails_app/script/rails +0 -6
@@ -1,9 +0,0 @@
1
- class Order < ActiveRecord::Base
2
-
3
- ##
4
- # Associations
5
- #
6
-
7
- has_one :invoice
8
-
9
- end
@@ -1,24 +0,0 @@
1
- =begin
2
-
3
- This model is used to test:
4
-
5
- - ActsAsTree
6
- - Default Scope
7
-
8
- =end
9
-
10
- class Page < ActiveRecord::Base
11
-
12
- ##
13
- # Mixins
14
- #
15
-
16
- acts_as_tree
17
-
18
- ##
19
- # Scopes
20
- #
21
-
22
- default_scope where(:status => true)
23
-
24
- end
@@ -1,32 +0,0 @@
1
- class Post < ActiveRecord::Base
2
-
3
- ##
4
- # Constants
5
- #
6
-
7
- STATUS = { "Draft" => "draft",
8
- "Published" => "published",
9
- "Unpublished" => "unpublished",
10
- "<div class=''>Something special</div>".html_safe => "special" }
11
-
12
- ARRAY_SELECTOR = %w(item1 item2)
13
- ARRAY_HASH_SELECTOR = [["Draft", "draft"], ["Custom Status", "custom"]]
14
-
15
- ##
16
- # Validations
17
- #
18
-
19
- validates :body, :presence => true
20
- validates :title, :presence => true
21
-
22
- ##
23
- # Associations
24
- #
25
-
26
- belongs_to :favorite_comment, :class_name => "Comment"
27
- belongs_to :typus_user
28
- has_and_belongs_to_many :categories
29
- has_many :comments
30
- has_many :views
31
-
32
- end
@@ -1,17 +0,0 @@
1
- class Project < ActiveRecord::Base
2
-
3
- ##
4
- # Validations
5
- #
6
-
7
- validates :user, :presence => true
8
-
9
- ##
10
- # Associations
11
- #
12
-
13
- belongs_to :user
14
- has_many :collaborators, :through => :project_collaborators, :source => :user
15
- has_many :project_collaborators, :dependent => :destroy
16
-
17
- end
@@ -1,16 +0,0 @@
1
- class ProjectCollaborator < ActiveRecord::Base
2
-
3
- ##
4
- # Validations
5
- #
6
-
7
- validates_uniqueness_of :user_id, :scope => :project_id
8
-
9
- ##
10
- # Associations
11
- #
12
-
13
- belongs_to :user
14
- belongs_to :project
15
-
16
- end
@@ -1,16 +0,0 @@
1
- class Site < ActiveRecord::Base
2
-
3
- ##
4
- # Validations
5
- #
6
-
7
- validates :domain, :presence => true
8
- validates :name, :presence => true
9
-
10
- ##
11
- # Associations
12
- #
13
-
14
- has_many :views
15
-
16
- end
@@ -1,22 +0,0 @@
1
- class TypusUser < ActiveRecord::Base
2
-
3
- ##
4
- # Constants
5
- #
6
-
7
- ROLE = Typus::Configuration.roles.keys.sort
8
- LOCALE = Typus.locales
9
-
10
- ##
11
- # Mixins
12
- #
13
-
14
- enable_as_typus_user
15
-
16
- ##
17
- # Associations
18
- #
19
-
20
- has_many :invoices
21
-
22
- end
@@ -1,10 +0,0 @@
1
- class User < ActiveRecord::Base
2
-
3
- ##
4
- # Associations
5
- #
6
-
7
- has_many :projects, :dependent => :destroy
8
- has_many :third_party_projects, :through => :project_collaborators, :dependent => :destroy
9
-
10
- end
@@ -1,19 +0,0 @@
1
- =begin
2
-
3
- This model is used to test:
4
-
5
- - View.typus_application when no application is set.
6
- - Scoped stuff by domain.
7
-
8
- =end
9
-
10
- class View < ActiveRecord::Base
11
-
12
- ##
13
- # Associations
14
- #
15
-
16
- belongs_to :post
17
- belongs_to :site
18
-
19
- end
@@ -1,3 +0,0 @@
1
- <div class="notice">
2
- <strong>Paperclip</strong> and <strong>Dragonfly</strong> support.
3
- </div>
@@ -1,3 +0,0 @@
1
- <div class="notice">
2
- This model inherits from <strong>Entry</strong>.
3
- </div>
@@ -1,3 +0,0 @@
1
- <div class="notice">
2
- Categories <strong>"acts_as_list"</strong>.
3
- </div>
@@ -1,11 +0,0 @@
1
- <!-- dashboard#_sidebar.html.erb -->
2
-
3
- <h2>Welcome!</h2>
4
-
5
- <p>This is the collection of models, organized by functionality, I use to <strong>test</strong> the typus <a href="http://core.typuscms.com/" title="Typus Core">core</a>.</p>
6
-
7
- <p>In some models appears an explanation of the customization added like for example: filters, search, sidebars ...</p>
8
-
9
- <p>Code for this application is available at <a href="https://github.com/typus/typus/tree/master/test/fixtures/rails_app">GitHub</a>.</p>
10
-
11
- <p>If you need help don't hesitate in joining the <%= link_to 'mailing list', 'http://groups.google.com/group/typus' %> or use the <%= link_to "help", "/admin/help" %>.</p>
@@ -1,3 +0,0 @@
1
- <div class="notice">
2
- This is a basic example of how <strong>Typus</strong> can manage models. You can add filters, search by attributes and display only those columns you need to. In this example we have added a boolean filter and a search box that searches by "title".
3
- </div>
@@ -1,7 +0,0 @@
1
- <div class="notice">
2
- This is the MongoDB document.
3
- </div>
4
-
5
- <pre>
6
- <%= @item.inspect %>
7
- </pre>
@@ -1,3 +0,0 @@
1
- <div class="notice">
2
- This model uses the document-oriented database <strong>MongoDB</strong>.
3
- </div>
@@ -1,28 +0,0 @@
1
- <%
2
- page_title = @resource.model_name.human.pluralize
3
- title(page_title)
4
- %>
5
-
6
- <% content_for :sidebar, build_sidebar %>
7
-
8
- <h2>
9
- <%= page_title %>
10
- <small><%= list_actions %></small>
11
- </h2>
12
-
13
- <%= display_flash_message %>
14
-
15
- <%= render 'index' %>
16
-
17
- <ul class="predefined_filters">
18
- <% predefined_filters.each do |filter, action, scope| %>
19
- <li><%= link_to Typus::I18n.t(filter), params.dup.cleanup.merge(:action => action) %> (<%= @resource.send(scope).count %>)</li>
20
- <% end %>
21
- </ul>
22
-
23
- <% if @items.any? -%>
24
- <%= build_list(@resource, fields, @items) %>
25
- <%= will_paginate(@items, Typus.pagination) %>
26
- <% else %>
27
- <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %></p>
28
- <% end %>
@@ -1,3 +0,0 @@
1
- <div class="notice">
2
- Pages <strong>"acts_as_tree"</strong>.
3
- </div>
@@ -1 +0,0 @@
1
- <!-- posts#_edit.html.erb -->
@@ -1,5 +0,0 @@
1
- <!-- posts#_index.html.erb -->
2
-
3
- <div class="notice">
4
- In this example you can see how <strong>Typus</strong> sidebar can be customized by model. In this case I have added <strong>CSV</strong> and <strong>XML</strong> export formats which come by default in <strong>Typus</strong> but can add as many data exporters as you need.
5
- </div>
@@ -1 +0,0 @@
1
- <!-- posts#_new.html.erb -->
@@ -1 +0,0 @@
1
- <!-- posts#_show.html.erb -->
@@ -1 +0,0 @@
1
- resources#_sidebar.html.erb
@@ -1,9 +0,0 @@
1
- <!-- Sidebar -->
2
-
3
- <%= @sidebar -%>
4
-
5
- <!-- Content -->
6
-
7
- <h2>Status</h2>
8
-
9
- <p>Find me in app/views/status/index.html.erb</p>
@@ -1 +0,0 @@
1
- templates#datepicker_template_<%= attribute %>
@@ -1,9 +0,0 @@
1
- <!-- Sidebar -->
2
-
3
- <%= @sidebar -%>
4
-
5
- <!-- Content -->
6
-
7
- <h2>Watch Dog</h2>
8
-
9
- <p>Find me in app/views/watch_dog/index.html.erb</p>
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run RailsApp::Application
@@ -1,44 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # If you have a Gemfile, require the gems listed there, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(:default, Rails.env) if defined?(Bundler)
8
-
9
- require 'typus'
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
- # Custom directories with classes and modules you want to be autoloadable.
18
- # config.autoload_paths += %W(#{config.root}/extras)
19
-
20
- # Only load the plugins named here, in the order given (default is alphabetical).
21
- # :all can be used as a placeholder for all plugins not explicitly named.
22
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
23
-
24
- # Activate observers that should always be running.
25
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
26
-
27
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
28
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
29
- # config.time_zone = 'Central Time (US & Canada)'
30
-
31
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
32
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
33
- # config.i18n.default_locale = :de
34
-
35
- # JavaScript files you want as :defaults (application.js is always included).
36
- # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
37
-
38
- # Configure the default encoding used in templates for Ruby 1.9.
39
- config.encoding = "utf-8"
40
-
41
- # Configure sensitive parameters which will be filtered from the log file.
42
- config.filter_parameters += [:password]
43
- end
44
- end
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../../Gemfile', __FILE__)
5
-
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -1,34 +0,0 @@
1
- <%
2
- connection = case ENV["DB"]
3
- when "mysql"
4
- { :adapter => "mysql2" }
5
- when "postgresql"
6
- { :adapter => "postgresql", :username => ENV['USER'] }
7
- else
8
- { :adapter => "sqlite3", :database => "db/test.sqlite3" }
9
- end
10
- %>
11
-
12
- # SQLite version 3.x
13
- # gem install sqlite3-ruby (not necessary on OS X Leopard)
14
- development:
15
- adapter: sqlite3
16
- database: db/development.sqlite3
17
- pool: 5
18
- timeout: 5000
19
-
20
- # Warning: The database defined as "test" will be erased and
21
- # re-generated from your development database when you run "rake".
22
- # Do not set this db to the same as development or production.
23
- test:
24
- adapter: <%= connection[:adapter] %>
25
- database: <%= connection[:database] || 'typus_test' %>
26
- username: <%= connection[:username] || 'root' %>
27
- pool: 5
28
- timeout: 5000
29
-
30
- production:
31
- adapter: sqlite3
32
- database: db/production.sqlite3
33
- pool: 5
34
- timeout: 5000
@@ -1,32 +0,0 @@
1
- set :user, "fesplugas"
2
- set :application, "demo.typuscms.com"
3
- set :use_sudo, false
4
- set :deploy_to, "/home/#{user}/public_html/#{application}"
5
-
6
- set :scm, :git
7
- set :default_run_options, { :pty => true }
8
- set :repository, "git://github.com/typus/typus.git"
9
- set :deploy_via, :remote_cache
10
- set :keep_releases, 2
11
-
12
- # Override default `:bundle_flags` because I don't provide a Gemfile.lock.
13
- set :bundle_flags, "--quiet"
14
-
15
- set :domain, "demo.typuscms.com"
16
-
17
- role :web, domain
18
- role :app, domain
19
- role :db, domain, :primary => true # This is where Rails migrations will run
20
- role :db, domain
21
-
22
- after "deploy", "deploy:cleanup"
23
-
24
- namespace :deploy do
25
- task :start do ; end
26
- task :stop do ; end
27
- task :restart, :roles => :app, :except => { :no_release => true } do
28
- run "cd #{current_path}/test/fixtures/rails_app && rake db:setup RAILS_ENV=production"
29
- run "cd #{current_path}/test/fixtures/rails_app && touch tmp/restart.txt"
30
- end
31
- task :finalize_update do ; end
32
- end
@@ -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,32 +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 webserver 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_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
- config.active_support.deprecation = :log
22
-
23
- # Only use best-standards-support built into browsers
24
- config.action_dispatch.best_standards_support = :builtin
25
- end
26
-
27
- # Be sure to restart your server when you modify this file.
28
-
29
- Typus.setup do |config|
30
- config.config_folder = Rails.root.join("config/typus")
31
- config.authentication = :session
32
- end