Commit Graph

32 Commits

Author SHA1 Message Date
Aldo "xoen" Giambelluca
87cfb63dbc Fixed validation issues in the "Configuring Rails Applications" guide [ci skip]
erb tag wasn't closed well
2012-09-02 20:39:00 +02:00
Prem Sichanugrist
aa4655806a Update guide/release note about AR::SessionStore 2012-08-24 15:24:19 -04:00
José Valim
5d416b9078 Deprecate config.threadsafe! 2012-08-21 14:47:43 -03:00
José Valim
2801786e1a Get rid of config.preload_frameworks in favor of config.eager_load_namespaces
The new option allows any Ruby namespace to be registered and set
up for eager load. We are effectively exposing the structure existing
in Rails since v3.0 for all developers in order to make their applications
thread-safe and CoW friendly.
2012-08-21 14:47:19 -03:00
José Valim
11bc3487ab Remove allow_concurrency as a flag
The flag was mainly used to add a Rack::Lock middleware to
the stack, but the only scenario the lock is desired is in
development.

If you are deploying on a not-threaded server, the Rack::Lock
does not provide any benefit since you don't have concurrent
accesses. On the other hand, if you are on a threaded server,
you don't want the lock, since it defeats the purpose of using
a threaded server.

If there is someone out there, running on a thread server
and does want a lock, it can be added to your environment
as easy as: `use Rack::Lock`
2012-08-21 14:46:12 -03:00
Jim Jones
4848bf321b Added X-Content-Type-Options to the header defaults.
With a value of "nosniff", this prevents Internet Explorer from MIME-sniffing a response away from the declared content-type.
2012-08-18 15:29:58 -07:00
Guillermo Iguaran
684b6482e4 Add doc for config.action_dispatch.default_headers
Add documentation for config.action_dispatch.default_headers to
Rails Configuring guide.
2012-08-10 22:00:50 -05:00
Jon Leighton
a63fc94aa3 fixup guides in light of :dependent changes 2012-08-10 23:45:25 +01:00
Vijay Dev
b51201242a copy edits [ci skip] 2012-08-04 15:09:33 +05:30
Prem Sichanugrist
f8d1b52a4f Audit the usage of the word "JavaScript" 2012-08-02 14:20:49 -04:00
dm1try
c12024bc7d tiny mistake in description 2012-07-22 23:47:30 +03:00
Carlos Antonio da Silva
3009c63da6 Improve docs, changelog and release notes for Action Mailer default_options=
[ci skip]
2012-07-06 22:51:32 -03:00
Robert Pankowecki
edaa2c4817 Introduce config.action_mailer.default_from=
Allows to easily set :from, :replay_to, etc. options in
config/application.rb using simple syntax:

  config.action_mailer.default_options = {from:"no-replay@example.org"}

This was not possible using #default method because

  config.action_mailer.default(from: "no-replay@example.org")

is interpreated as reader method and just returns nil.
It would not call ActionMailer::Base.default method. The only
way of calling this method from config/application.rb was to use
the direct syntax which looks ugly in my opinion:

  config.assets.enabled = false
  config.assets.version = '1.0'
  config.encoding = "utf-8"
  config.action_mailer.default_url_options= {
    host:"example.org",
    protocol:"https"
  }
  ActionMailer::Base.default(from: "no-replay@example.org")
2012-07-03 22:14:08 +00:00
Rory O’Kane
f09c84ca26 clarified how file naming affects load order of initializers 2012-05-22 15:50:19 -03:00
Mark Rushakoff
632f279ec0 code-format italicized 'production' env [ci skip] 2012-05-14 22:37:34 -07:00
Egor Homakov
d4f4b858d3 Update guides/source/configuring.textile 2012-05-11 15:40:03 +04:00
Egor Homakov
c9a4e65217 Update guides/source/configuring.textile 2012-05-11 14:48:02 +04:00
Vijay Dev
7918d7bf5c Merge branch 'master' of github.com:lifo/docrails 2012-05-08 23:56:25 +05:30
Mark Rushakoff
552f535796 are ran -> are run
The former is grammatically incorrect.
2012-05-06 20:40:48 -07:00
José Valim
ffad3600ea Merge pull request #6153 from carlosantoniodasilva/queue-consumer
Configurable queue consumer
2012-05-04 05:44:21 -07:00
Vijay Dev
3d9673d8f6 Merge branch 'master' of github.com:lifo/docrails 2012-05-04 17:51:15 +05:30
Carlos Antonio da Silva
7a6116b633 Add some docs and changelog entry 2012-05-04 09:11:45 -03:00
Carlos Antonio da Silva
026e0d1c4d Remove vestiges of the http_only! config from configuring guide 2012-05-03 22:16:04 -03:00
Teng Siong Ong
7273adabed cache_store has an extra option of :null_store. 2012-05-03 03:28:32 -05:00
Piotr Sarnacki
e6ab0d56cf Lazy load default_form_builder if it's passed as a string
closes #3341
2012-04-28 22:32:46 -07:00
Vijay Dev
50b1399b31 update docs - disabling prepared statements is not connected to managing connections externally [ci skip] 2012-04-28 00:36:14 +05:30
Ivan Evtukhovich
c6663235f6 Add to guides info how to disable prepared statements 2012-04-19 11:27:26 +04:00
Grant Hutchins
18d275ada1 Make controller namespace partial prefix optional
config.action_view.prefix_partial_path_with_controller_namespace

This allows you to choose to render @post using
/posts/_post.erb instead of /admin/posts/_post.erb
inside Admin::PostsController.
2012-03-28 20:21:46 -04:00
Piotr Sarnacki
128cfbdf4d config.action_view.embed_authenticity_token_in_remote_forms is true by default
Changed default value for `config.action_view.embed_authenticity_token_in_remote_forms`
to `false`. This change breaks remote forms that need to work also without javascript,
so if you need such behavior, you can either set it to `true` or explicitly pass
`:authenticity_token => true` in form options
2012-03-28 18:03:16 +02:00
Piotr Sarnacki
805b15ff35 Added config.action_view.embed_authenticity_token_in_remote_forms
There is a regression introduced in 16ee611fa, which breaks
remote forms that should also work without javascript. This commit
introduces config option that allows to configure this behavior
defaulting to the old behavior (ie. include authenticity token
in remote forms by default)

Conflicts:

	actionpack/CHANGELOG.md
2012-03-28 18:03:15 +02:00
Rafael Mendonça França
da5a47e7b9 Update the guides and CHANGELOG 2012-03-17 13:44:56 -03:00
Xavier Noria
6d87cd028b moves the guides up to the root directory 2012-03-17 08:32:49 -07:00