parent
33cdee1c1c
commit
fd39b3979d
@ -1,4 +1,4 @@
|
|||||||
# This file is used by Rack-based servers to start the application.
|
# This file is used by Rack-based servers to start the application.
|
||||||
|
|
||||||
require ::File.expand_path('../config/environment', __FILE__)
|
require ::File.expand_path('../config/environment', __FILE__)
|
||||||
run Wikiufc::Application
|
run WikiUFC::Application
|
||||||
|
@ -1,62 +1,77 @@
|
|||||||
require File.expand_path('../boot', __FILE__)
|
require File.expand_path('../boot', __FILE__)
|
||||||
|
|
||||||
require 'rails/all'
|
require 'rails/all'
|
||||||
|
require 'active_support/core_ext/numeric/bytes'
|
||||||
|
|
||||||
if defined?(Bundler)
|
if defined?(Bundler)
|
||||||
# If you precompile assets before deploying to production, use this line
|
|
||||||
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
||||||
# If you want your assets lazily compiled in production, use this line
|
|
||||||
# Bundler.require(:default, :assets, Rails.env)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
module Wikiufc
|
module WikiUFC
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Settings in config/environments/* take precedence over those specified here.
|
config.encoding = "utf-8"
|
||||||
# Application configuration should go into files in config/initializers
|
config.filter_parameters += [:password]
|
||||||
# -- all .rb files in that directory are automatically loaded.
|
config.active_support.escape_html_entities_in_json = true
|
||||||
|
config.active_record.whitelist_attributes = true
|
||||||
|
config.assets.version = '1.0'
|
||||||
|
config.assets.enabled = true
|
||||||
|
|
||||||
# Custom directories with classes and modules you want to be autoloadable.
|
config.language = "pt_BR"
|
||||||
# config.autoload_paths += %W(#{config.root}/extras)
|
config.title = "Wiki UFC"
|
||||||
|
config.webmaster_email = "webmaster@wikiufc.gelsol.org"
|
||||||
|
|
||||||
# Only load the plugins named here, in the order given (default is alphabetical).
|
config.default_host = "localhost:3000"
|
||||||
# :all can be used as a placeholder for all plugins not explicitly named.
|
config.base_path = ""
|
||||||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
|
||||||
|
|
||||||
# Activate observers that should always be running.
|
config.current_period = "2009.2"
|
||||||
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
|
||||||
|
|
||||||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
# Limites
|
||||||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
config.max_upload_file_size = 5.megabytes
|
||||||
# config.time_zone = 'Central Time (US & Canada)'
|
|
||||||
|
|
||||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
# Forum
|
||||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
#config.forum_uri = "http://127.0.0.1:3001/"
|
||||||
# config.i18n.default_locale = :de
|
|
||||||
|
|
||||||
# Configure the default encoding used in templates for Ruby 1.9.
|
# Tema
|
||||||
config.encoding = "utf-8"
|
config.default_color = 0
|
||||||
|
config.default_avatar = "http://isoron.org/avatar"
|
||||||
|
config.color_schemes = [
|
||||||
|
# Default
|
||||||
|
[ "#037", "#069", "#455", "#778" ],
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
# Legado
|
||||||
config.filter_parameters += [:password]
|
[ "#000", "#069", "#455", "#455" ],
|
||||||
|
[ "#000", "#690", "#444", "#666" ],
|
||||||
|
|
||||||
# Enable escaping HTML in JSON.
|
# Mono
|
||||||
config.active_support.escape_html_entities_in_json = true
|
|
||||||
|
|
||||||
# Use SQL instead of Active Record's schema dumper when creating the database.
|
[ "#900", "#c00", "#444", "#888" ],
|
||||||
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
||||||
# like if you have constraints or database-specific column types
|
# Aqua
|
||||||
# config.active_record.schema_format = :sql
|
[ "#7b7", "#455", "#899", "#abb" ],
|
||||||
|
[ "#005B9A", "#455", "#899", "#abb" ],
|
||||||
|
[ "#8D009A", "#455", "#899", "#abb" ],
|
||||||
|
[ "#9A000D", "#455", "#899", "#abb" ],
|
||||||
|
[ "#5A9A00", "#455", "#899", "#abb" ],
|
||||||
|
|
||||||
# Enforce whitelist mode for mass assignment.
|
# Complementar
|
||||||
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
#[ "#037", "#c60", "#457", "#568" ],
|
||||||
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
#[ "#070", "#c00", "#474", "#585" ],
|
||||||
# parameters by using an attr_accessible or attr_protected declaration.
|
|
||||||
config.active_record.whitelist_attributes = true
|
|
||||||
|
|
||||||
# Enable the asset pipeline
|
# Pink
|
||||||
config.assets.enabled = true
|
[ "#d18", "#d18", "#457", "#668" ],
|
||||||
|
#[ "#609", "#455", "#547", "#658" ],
|
||||||
|
|
||||||
# Version of your assets, change this if you want to expire all your assets
|
# Sand
|
||||||
config.assets.version = '1.0'
|
[ "#900", "#663", "#888", "#cc9" ],
|
||||||
|
[ "#036", "#663", "#888", "#cc9" ],
|
||||||
|
[ "#680", "#663", "#888", "#cc9" ]
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# Templates
|
||||||
|
config.inital_wiki_pages = ['Ementa', 'Notas de Aula']
|
||||||
|
config.initial_wiki_page_content = "Página em branco."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
App = WikiUFC::Application.config
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
Wikiufc::Application.config.session_store :cookie_store, :key => '_wikiufc_session'
|
WikiUFC::Application.config.session_store :cookie_store, :key => '_wikiufc_session'
|
||||||
|
|
||||||
# Use the database for sessions instead of the cookie-based default,
|
# Use the database for sessions instead of the cookie-based default,
|
||||||
# which shouldn't be used to store highly confidential information
|
# which shouldn't be used to store highly confidential information
|
||||||
# (create the session table with "rails generate session_migration")
|
# (create the session table with "rails generate session_migration")
|
||||||
# Wikiufc::Application.config.session_store :active_record_store
|
# WikiUFC::Application.config.session_store :active_record_store
|
||||||
|
Reference in new issue