Skip to content
Browse files

Update guides/source/rails_application_templates.md

Add `#environment`
  • Loading branch information...
1 parent 407e7d4 commit dcf401e3bc7163aefab856abe7f1d238025c4ef9 @graywh graywh committed Nov 9, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 guides/source/rails_application_templates.md
View
12 guides/source/rails_application_templates.md
@@ -85,6 +85,18 @@ For example, if you need to source a gem from "http://code.whytheluckystiff.net"
add_source "http://code.whytheluckystiff.net"
```
+### environment/application(data=nil, options={}, &block)
+
+Adds a line inside the `Application` class for `config/application.rb`.
+
+If options `:env` is specified, the line is appended to the corresponding file in `config/environments`.
+
+```ruby
+environment 'config.action_mailer.default_url_options = { :host => 'http://yourwebsite.example.com' }, :env => 'production'
+```
+
+A block can be used in place of the `data` argument.
+
### vendor/lib/file/initializer(filename, data = nil, &block)
Adds an initializer to the generated application’s `config/initializers` directory.

0 comments on commit dcf401e

Please sign in to comment.
Something went wrong with that request. Please try again.