Rails 3.2.9.rc1 has been released. If no regressions are found I will
release 3.2.9 final this Thursday 1st. If you find a regression open an
issue on github and mention me on it, mail me or tweet me, whatever but
let me know :).
Accept :remote as symbolic option for
link_to helper. Riley Lynch
Warn when the
:locals option is passed to
assert_template outside of a view test case
Rename internal variables on ActionController::TemplateAssertions to prevent
naming collisions. @partials, @templates and @layouts are now prefixed with an underscore.
resources don’t modify the passed options hash
Precompiled assets include aliases from foo.js to foo/index.js and vice versa.
# Precompiles phone-<digest>.css and aliases phone/index.css to phone.css.
config.assets.precompile = [ 'phone.css' ]
# Precompiles phone/index-<digest>.css and aliases phone.css to phone/index.css.
config.assets.precompile = [ 'phone/index.css' ]
# Both of these work with either precompile thanks to their aliases.
<%= stylesheet_link_tag 'phone', media: 'all' %>
<%= stylesheet_link_tag 'phone/index', media: 'all' %>
assert_template is no more passing with what ever string that matches
with the template name.
Before when we have a template
was passing with any string that matches. This behavior allowed false
Now it only passes with:
Rack::Test::UploadedFile, don’t call to_param on it. Since
Rack::Test::UploadedFile isn’t API compatible this is needed to test file uploads that rely on
Fixed a bug with shorthand routes scoped with the
:module option not
adding the module to the controller as described in issue #6497.
This should now work properly:
scope :module => "engine" do
get "api/version" # routes to engine/api#version
Luiz Felipe Garcia Pereira
config.digest = false for
asset_path internals only respected the
option, but ignored the global config setting. This meant that
config.digest = false could not be used in conjunction with
config.compile = false this corrects the behavior.
Fix #7646, the log now displays the correct status code when an exception is raised.
Fix handling of date selects when using both disabled and discard options.
Fix select_tag when option_tags is nil.
application.js if the file does not exists. Prem Sichanugrist
Support cookie jar options (e.g., domain :all) for all session stores.
Fixes GH#3047, GH#2483.
Performance Improvement to send_file: Avoid having to pass an open file handle as the response body. Rack::Sendfile
will usually intercept the response and just uses the path directly, so no reason to open the file. This performance
improvement also resolves an issue with jRuby encodings, and is the reason for the backport, see issue #6844.
Jeremy Kemper & Erich Menge
Fix bug where
update_column would not let you update the primary key column.
Decode URI encoded attributes on database connection URLs.
Fix AR#dup to nullify the validation errors in the dup’ed object. Previously the original
and the dup’ed object shared the same errors.
Synchronize around deleting from the reserved connections hash.
PostgreSQL adapter correctly fetches default values when using
multiple schemas and domains in a db. Fixes #7914
Fix deprecation notice when loading a collection association that
selects columns from other tables, if a new record was previously
built using that association.
The postgres adapter now supports tables with capital letters.
0 without querying if the
parent record is not persisted.
# SELECT COUNT(*) FROM "pets" WHERE "pets"."person_id" IS NULL
# => 0
# fires without sql query
# => 0
reset_counters crashing on
has_many :through associations.
ConnectionPool recognizes checkout_timeout spec key as taking
precedence over legacy wait_timeout spec key, can be used to avoid
conflict with mysql2 use of wait_timeout. Closes #7684.
Rename field_changed? to _field_changed? so that users can create a field named field
Akira Matsuda, backported by Steve Klabnik
Fix creation of through association models when using
has_many :through association from an unsaved model.
Explain only normal CRUD sql (select / update / insert / delete).
Fix problem that explains unexplainable sql. Closes #7544 #6458.
Backport test coverage to ensure that PostgreSQL auto-reconnect functionality
Use config[‘encoding’] instead of config[‘charset’] when executing
databases.rake in the mysql/mysql2. A correct option for a database.yml
Fix ConnectionAdapters::Column.type_cast_code integer conversion,
to always convert values to integer calling #to_i. Fixes #7509.
Fix time column type casting for invalid time string values to correctly return nil.
becomes when using a configured
reset_counters when there are multiple
belongs_to association with the
same foreign key and one of them have a counter cache.
Round usec when comparing timestamp attributes in the dirty tracking.
Use inversed parent for first and last child of has_many association.
Fix Column.microseconds and Column.fast_string_to_date to avoid converting
timestamp seconds to a float, since it occasionally results in inaccuracies
with microsecond-precision times. Fixes #7352.
toggle! that was skipping callbacks.
Rafael Mendonça França
Fix AR#create to return an unsaved record when AR::RecordInvalid is
raised. Fixes #3217.
Remove unnecessary transaction when assigning has_one associations with a nil or equal value.
Allow store to work with an empty column.
Remove prepared statement from system query in postgresql adapter.
:environment task is executed before