1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

some edits in 4.0 release notes [ci skip]

This commit is contained in:
Vijay Dev 2012-09-22 00:04:40 +05:30
parent 271d1e7d8c
commit 96ded2efb7

View file

@ -1,7 +1,12 @@
Ruby on Rails 4.0 Release Notes
===============================
Highlights in Rails 4.0:
Highlights in Rails 4.0: (WIP)
* Ruby 1.9.3 only
* Strong Parameters
* Queue API
* Caching Improvements
These release notes cover the major changes, but do not include each bug-fix and changes. If you want to see everything, check out the [list of commits](https://github.com/rails/rails/commits/master) in the main Rails repository on GitHub.
@ -12,7 +17,6 @@ Upgrading to Rails 4.0
TODO. This is a WIP guide.
If you're upgrading an existing application, it's a great idea to have good test coverage before going in. You should also first upgrade to Rails 3.2 in case you haven't and make sure your application still runs as expected before attempting an update to Rails 4.0. Then take heed of the following changes:
### Rails 4.0 requires at least Ruby 1.9.3
@ -29,7 +33,6 @@ Rails 4.0 requires Ruby 1.9.3 or higher. Support for all of the previous Ruby ve
TODO: Update the versions above.
* Rails 4.0 removes `vendor/plugins` completely. You have to replace these plugins by extracting them as gems and adding them in your Gemfile. If you choose not to make them gems, you can move them into, say, `lib/my_plugin/*` and add an appropriate initializer in `config/initializers/my_plugin.rb`.
TODO: Configuration changes in environment files
@ -69,6 +72,8 @@ Major Features
Documentation
-------------
* Guides are rewritten in GitHub Flavored Markdown.
Railties
--------
@ -131,11 +136,8 @@ Action Mailer
```ruby
def welcome_mailer(user,company)
mail to: user.email,
subject: "Welcome!",
delivery_method_options: {user_name: company.smtp_user,
password: company.smtp_password,
address: company.smtp_server}
delivery_options = { user_name: company.smtp_user, password: company.smtp_password, address: company.smtp_host }
mail(to: user.email, subject: "Welcome!", delivery_method_options: delivery_options)
end
```
@ -410,7 +412,6 @@ Active Record
remove_reference(:products, :supplier, polymorphic: true)
```
* Add `:default` and `:null` options to `column_exists?`.
```ruby