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.
- data/.gitmodules +3 -0
- data/app/views/admin/templates/_text_with_ckeditor.html.erb +13 -0
- data/lib/typus/version.rb +1 -1
- metadata +20 -272
- data/test/fixtures/rails_app/.gitignore +0 -4
- data/test/fixtures/rails_app/Capfile +0 -6
- data/test/fixtures/rails_app/README +0 -256
- data/test/fixtures/rails_app/Rakefile +0 -7
- data/test/fixtures/rails_app/app/controllers/admin/animals_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/articles_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +0 -51
- data/test/fixtures/rails_app/app/controllers/admin/birds_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/cases_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/categories_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/comments_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/dogs_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/entries_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/hits_controller.rb +0 -37
- data/test/fixtures/rails_app/app/controllers/admin/image_holders_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/invoices_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/orders_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/pages_controller.rb +0 -7
- data/test/fixtures/rails_app/app/controllers/admin/posts_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/project_collaborators_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/projects_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/status_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/users_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin/views_controller.rb +0 -8
- data/test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb +0 -2
- data/test/fixtures/rails_app/app/controllers/admin_user.rb +0 -3
- data/test/fixtures/rails_app/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/rails_app/app/helpers/application_helper.rb +0 -2
- data/test/fixtures/rails_app/app/helpers/form_helper.rb +0 -3
- data/test/fixtures/rails_app/app/models/animal.rb +0 -21
- data/test/fixtures/rails_app/app/models/article.rb +0 -10
- data/test/fixtures/rails_app/app/models/asset.rb +0 -45
- data/test/fixtures/rails_app/app/models/bird.rb +0 -2
- data/test/fixtures/rails_app/app/models/case.rb +0 -2
- data/test/fixtures/rails_app/app/models/category.rb +0 -31
- data/test/fixtures/rails_app/app/models/comment.rb +0 -17
- data/test/fixtures/rails_app/app/models/delayed/task.rb +0 -5
- data/test/fixtures/rails_app/app/models/dog.rb +0 -2
- data/test/fixtures/rails_app/app/models/entry.rb +0 -23
- data/test/fixtures/rails_app/app/models/hit.rb +0 -27
- data/test/fixtures/rails_app/app/models/image_holder.rb +0 -21
- data/test/fixtures/rails_app/app/models/invoice.rb +0 -10
- data/test/fixtures/rails_app/app/models/order.rb +0 -9
- data/test/fixtures/rails_app/app/models/page.rb +0 -24
- data/test/fixtures/rails_app/app/models/post.rb +0 -32
- data/test/fixtures/rails_app/app/models/project.rb +0 -17
- data/test/fixtures/rails_app/app/models/project_collaborator.rb +0 -16
- data/test/fixtures/rails_app/app/models/site.rb +0 -16
- data/test/fixtures/rails_app/app/models/typus_user.rb +0 -22
- data/test/fixtures/rails_app/app/models/user.rb +0 -10
- data/test/fixtures/rails_app/app/models/view.rb +0 -19
- data/test/fixtures/rails_app/app/views/admin/assets/_index.html.erb +0 -3
- data/test/fixtures/rails_app/app/views/admin/cases/_index.html.erb +0 -3
- data/test/fixtures/rails_app/app/views/admin/categories/_index.html.erb +0 -3
- data/test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb +0 -11
- data/test/fixtures/rails_app/app/views/admin/entries/_index.html.erb +0 -3
- data/test/fixtures/rails_app/app/views/admin/hits/_edit.html.erb +0 -7
- data/test/fixtures/rails_app/app/views/admin/hits/_index.html.erb +0 -3
- data/test/fixtures/rails_app/app/views/admin/hits/index.html.erb +0 -28
- data/test/fixtures/rails_app/app/views/admin/pages/_index.html.erb +0 -3
- data/test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/posts/_index.html.erb +0 -5
- data/test/fixtures/rails_app/app/views/admin/posts/_new.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/posts/_show.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/status/index.html.erb +0 -9
- data/test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb +0 -1
- data/test/fixtures/rails_app/app/views/admin/watch_dog/index.html.erb +0 -9
- data/test/fixtures/rails_app/config.ru +0 -4
- data/test/fixtures/rails_app/config/application.rb +0 -44
- data/test/fixtures/rails_app/config/boot.rb +0 -6
- data/test/fixtures/rails_app/config/database.yml +0 -34
- data/test/fixtures/rails_app/config/deploy.rb +0 -32
- data/test/fixtures/rails_app/config/environment.rb +0 -5
- data/test/fixtures/rails_app/config/environments/development.rb +0 -32
- data/test/fixtures/rails_app/config/environments/production.rb +0 -54
- data/test/fixtures/rails_app/config/environments/test.rb +0 -40
- data/test/fixtures/rails_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/fixtures/rails_app/config/initializers/dragonfly.rb +0 -1
- data/test/fixtures/rails_app/config/initializers/inflections.rb +0 -12
- data/test/fixtures/rails_app/config/initializers/mime_types.rb +0 -5
- data/test/fixtures/rails_app/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/rails_app/config/initializers/session_store.rb +0 -8
- data/test/fixtures/rails_app/config/initializers/typus.rb +0 -5
- data/test/fixtures/rails_app/config/initializers/typus_resources.rb +0 -27
- data/test/fixtures/rails_app/config/locales/en.yml +0 -5
- data/test/fixtures/rails_app/config/mongoid.yml +0 -20
- data/test/fixtures/rails_app/config/routes.rb +0 -61
- data/test/fixtures/rails_app/config/typus/README +0 -68
- data/test/fixtures/rails_app/config/typus/crud_basic.yml +0 -10
- data/test/fixtures/rails_app/config/typus/crud_basic_roles.yml +0 -2
- data/test/fixtures/rails_app/config/typus/crud_extended.yml +0 -66
- data/test/fixtures/rails_app/config/typus/crud_extended_roles.yml +0 -18
- data/test/fixtures/rails_app/config/typus/has_many.yml +0 -0
- data/test/fixtures/rails_app/config/typus/has_many_roles.yml +0 -0
- data/test/fixtures/rails_app/config/typus/has_many_through.yml +0 -23
- data/test/fixtures/rails_app/config/typus/has_many_through_roles.yml +0 -4
- data/test/fixtures/rails_app/config/typus/has_one.yml +0 -12
- data/test/fixtures/rails_app/config/typus/has_one_roles.yml +0 -3
- data/test/fixtures/rails_app/config/typus/mongo_db.yml +0 -4
- data/test/fixtures/rails_app/config/typus/mongo_db_roles.yml +0 -2
- data/test/fixtures/rails_app/config/typus/polymorphic.yml +0 -17
- data/test/fixtures/rails_app/config/typus/polymorphic_roles.yml +0 -5
- data/test/fixtures/rails_app/config/typus/resource_roles.yml +0 -7
- data/test/fixtures/rails_app/config/typus/sti.yml +0 -5
- data/test/fixtures/rails_app/config/typus/sti_roles.yml +0 -2
- data/test/fixtures/rails_app/config/typus/typus.yml +0 -13
- data/test/fixtures/rails_app/config/typus/typus_roles.yml +0 -2
- data/test/fixtures/rails_app/config/typus/unknown.yml +0 -3
- data/test/fixtures/rails_app/config/typus/unknown_roles.yml +0 -5
- data/test/fixtures/rails_app/db/.gitkeep +0 -0
- data/test/fixtures/rails_app/db/schema.rb +0 -200
- data/test/fixtures/rails_app/db/seeds.rb +0 -54
- data/test/fixtures/rails_app/db/seeds/assets/000.jpg +0 -0
- data/test/fixtures/rails_app/db/seeds/assets/001.jpg +0 -0
- data/test/fixtures/rails_app/db/seeds/assets/002.jpg +0 -0
- data/test/fixtures/rails_app/db/seeds/assets/003.jpg +0 -0
- data/test/fixtures/rails_app/db/seeds/assets/004.jpg +0 -0
- data/test/fixtures/rails_app/public/404.html +0 -26
- data/test/fixtures/rails_app/public/422.html +0 -26
- data/test/fixtures/rails_app/public/500.html +0 -26
- data/test/fixtures/rails_app/public/favicon.ico +0 -0
- data/test/fixtures/rails_app/public/images/rails.png +0 -0
- data/test/fixtures/rails_app/public/robots.txt +0 -5
- data/test/fixtures/rails_app/public/stylesheets/.gitkeep +0 -0
- data/test/fixtures/rails_app/script/rails +0 -6
@@ -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,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,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,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,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 +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 +0,0 @@
|
|
1
|
-
templates#datepicker_template_<%= attribute %>
|
@@ -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,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,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
|