Skip to content

Commit 8e9df34

Browse files
committed
Merge branch 'master' of github.com:rails/rails
2 parents dc25138 + b4fd5e6 commit 8e9df34

File tree

19 files changed

+55
-27
lines changed

19 files changed

+55
-27
lines changed

actionmailer/CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
*Rails 3.0.0 [beta 3] (April 13th, 2010)*
2+
13
* Removed all quoting.rb type files from ActionMailer and put Mail 2.2.0 in instead [ML]
24

35
* Lot of updates to various test cases that now work better with the new Mail and so have different expectations
46

7+
58
*Rails 3.0.0 [beta 2] (April 1st, 2010)*
69

710
* Added interceptors and observers from Mail [ML]

actionmailer/lib/action_mailer/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def mail(headers={}, &block)
541541
wrap_delivery_behavior!(headers.delete(:delivery_method))
542542

543543
# Assign all headers except parts_order, content_type and body
544-
assignable = headers.except(:parts_order, :content_type, :body)
544+
assignable = headers.except(:parts_order, :content_type, :body, :template_name, :template_path)
545545
assignable.each { |k, v| m[k] = v }
546546

547547
# Render the templates and blocks

actionmailer/test/base_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,28 +510,28 @@ def different_layout(layout_name='')
510510

511511
# Rendering
512512
test "you can specify a different template for implicit render" do
513-
mail = BaseMailer.implicit_different_template('implicit_multipart')
513+
mail = BaseMailer.implicit_different_template('implicit_multipart').deliver
514514
assert_equal("HTML Implicit Multipart", mail.html_part.body.decoded)
515515
assert_equal("TEXT Implicit Multipart", mail.text_part.body.decoded)
516516
end
517517

518518
test "you can specify a different template for explicit render" do
519-
mail = BaseMailer.explicit_different_template('explicit_multipart_templates')
519+
mail = BaseMailer.explicit_different_template('explicit_multipart_templates').deliver
520520
assert_equal("HTML Explicit Multipart Templates", mail.html_part.body.decoded)
521521
assert_equal("TEXT Explicit Multipart Templates", mail.text_part.body.decoded)
522522
end
523523

524524
test "you can specify a different layout" do
525-
mail = BaseMailer.different_layout('different_layout')
525+
mail = BaseMailer.different_layout('different_layout').deliver
526526
assert_equal("HTML -- HTML", mail.html_part.body.decoded)
527527
assert_equal("PLAIN -- PLAIN", mail.text_part.body.decoded)
528528
end
529529

530530
test "you can specify the template path for implicit lookup" do
531-
mail = BaseMailer.welcome_from_another_path('another.path/base_mailer')
531+
mail = BaseMailer.welcome_from_another_path('another.path/base_mailer').deliver
532532
assert_equal("Welcome from another path", mail.body.encoded)
533533

534-
mail = BaseMailer.welcome_from_another_path(['unknown/invalid', 'another.path/base_mailer'])
534+
mail = BaseMailer.welcome_from_another_path(['unknown/invalid', 'another.path/base_mailer']).deliver
535535
assert_equal("Welcome from another path", mail.body.encoded)
536536
end
537537

actionpack/CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*Rails 3.0.0 [beta 3] (pending)*
1+
*Rails 3.0.0 [beta 3] (April 13th, 2010)*
22

33
* New option :as added to form_for allows to change the object name. The old <% form_for :client, @post %> becomes <% form_for @post, :as => :client %> [spastorino]
44

actionpack/test/controller/layout_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test_layout_status_is_rendered
209209
end
210210
end
211211

212-
unless RUBY_PLATFORM =~ /(:?mswin|mingw|bccwin)/
212+
unless RUBY_PLATFORM =~ /mswin|mingw/
213213
class LayoutSymlinkedTest < LayoutTest
214214
layout "symlinked/symlinked_layout"
215215
end

activemodel/CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
*Rails 3.0.0 [beta 3] (April 13th, 2010)*
2+
3+
* No changes
4+
5+
16
*Rails 3.0.0 [beta 2] (April 1st, 2010)*
27

38
* #new_record? and #destroyed? were removed from ActiveModel::Lint. Use

activerecord/CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*Rails 3.0.0 [Beta 2] (pending)*
1+
*Rails 3.0.0 [beta 3] (April 13th, 2010)*
22

33
* Add Relation extensions. [Pratik Naik]
44

activeresource/CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
*Rails 3.0.0 [beta 3] (April 13th, 2010)*
2+
3+
* No changes
4+
5+
16
*Rails 3.0.0 [beta 1] (February 4, 2010)*
27

38
* Add support for errors in JSON format. #1956 [Fabien Jakimowicz]

activesupport/CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*Rails 3.0.0 [beta 3] (pending)*
1+
*Rails 3.0.0 [beta 3] (April 13th, 2010)*
22

33
* Improve transliteration quality. #4374 [Norman Clarke]
44

activesupport/lib/active_support/core_ext/proc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "active_support/core_ext/object"
1+
require "active_support/core_ext/kernel/singleton_class"
22

33
class Proc #:nodoc:
44
def bind(object)

0 commit comments

Comments
 (0)