Speaker Deck

Rails 5: awesome features and breaking changes

by Claudio B.

Published September 26, 2015 in Programming

Presented at RailsClub in Moscow, September 2015
Video: https://www.youtube.com/watch?v=GbtepoRfH60

Links from this presentation:

------

Clean:

Remove deprecation code
http://github.com/rails/rails/pull/18325

Remove respond_to/respond_with placeholder methods
http://github.com/rails/rails/commit/afd5e9a

Remove XML Serialization
http://github.com/rails/rails/pull/21161

Remove content_tag_for, div_for
http://github.com/rails/rails/pull/18411

Remove skip_action_callback
http://github.com/rails/rails/pull/19060

Remove rake doc:* tasks
http://github.com/rails/rails/commit/cd7cc52

Remove render nothing: true
http://github.com/rails/rails/pull/20336

Remove from ActionController *_filter callbacks (use *_action)
http://github.com/rails/rails/commit/7644a99

------

Pack:

Require Ruby 2.2.2
http://github.com/rails/rails/pull/19753

Beyond Ludicrous Speed
http://github.com/rails/rails/pull/21057

AS::Dependencies 10x faster
http://github.com/rails/rails/pull/21411

Use #start_with? and #[] for speed
http://github.com/rails/rails/pull/21100

Reference string constants
http://github.com/rails/rails/pull/17173

Use keyword arguments
http://github.com/rails/rails/pull/18323

Replace alias_method_chain with Module#prepend
http://github.com/rails/rails/pull/19434

------

Unpack:

Type ‘rails command’, not ‘rake’
http://github.com/rails/rails/pull/18878

_🍔.html.erb is a valid partial file
http://github.com/rails/rails/commit/da9038e

Require belongs_to by default
http://github.com/rails/rails/pull/18937

Drop ActiveRecord::Relation#uniq
http://github.com/rails/rails/pull/20198

More uniform arguments for ActiveRecord::Relation methods
http://github.com/rails/rails/pull/11898
http://github.com/rails/rails/pull/21505

Allow true to validate acceptance
http://github.com/rails/rails/pull/18439

More reversible migration actions
http://github.com/rails/rails/pull/20018

Allow empty arrays in deep munge
http://github.com/rails/rails/pull/16924

Accept collections in fresh_when
http://github.com/rails/rails/pull/18374

------

Decorate:

Add ActiveRecord::Relation#or
http://github.com/rails/rails/pull/16052

Add ActiveModel::Errors#codes
http://github.com/rails/rails/pull/18322

Add Integer#positive?, negative?
http://github.com/rails/rails/commit/e54277a

Add prev_weekday, next_weekday, weekend? to Date and DateTime
http://github.com/rails/rails/pull/18335

Add Method#source_code
http://github.com/rails/rails/pull/18473

Add forever-cache for static pages
http://github.com/rails/rails/pull/18394

Add AR::Base.has_secure_token
http://github.com/rails/rails/pull/18217

Add ActionController::Renderer
http://github.com/rails/rails/pull/18546

Add 'rake dev:cache'
http://github.com/rails/rails/pull/20961

------

Housewarm:

Returning false in callbacks no longer halts callback chains
http://github.com/rails/rails/pull/17227

ActionController::Parameters no longer inherits from HashWithIndifferentAccess
http://github.com/rails/rails/pull/20868

PredicateBuilder no longer accepts Class in conditions
http://github.com/rails/rails/pull/17916

Time columns are now time-zone aware by default
http://github.com/rails/rails/pull/15726

Other Presentations by this Speaker