Go to file
Mislav Marohnić 2161b8745a improve how ActiveRecord::Observer defines callbacks on observed models
Instead of using a single `notify_observers` call for every callback type,
each observer now registers a unique callback for itself. Example:

  before_save :_notify_user_observer_for_before_save

  def _notify_user_observer_for_before_save
    observer.update(:before_save, self)
  end

Benefit: "before" callbacks halt when `observer.update` returns false.
This way, ActiveRecord observers can prevent records from saving.

[#4087 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-16 13:12:53 -07:00
actionmailer template_name and template_path should not be added to mail headers. 2010-04-13 23:04:22 +02:00
actionpack page_cache_extension is delegating to config so no need to deprecate 2010-04-16 11:03:16 -03:00
activemodel ActiveModel::Observing: stop using Observable Ruby module, re-implement notify_observers 2010-04-16 13:09:07 -07:00
activerecord improve how ActiveRecord::Observer defines callbacks on observed models 2010-04-16 13:12:53 -07:00
activeresource Update changelogs for release 2010-04-13 12:14:54 -07:00
activesupport add missing requires to Rescuable and RouteSet [#4415 state:committed] 2010-04-16 06:11:38 -07:00
bin Bring back bin/rails to life on edge 2010-04-13 14:23:38 -07:00
ci Replace deprecated RAILS_ROOT to Rails.env [#4373 state:resolved] 2010-04-12 21:13:19 -07:00
doc/template Horo rdoc template 2008-06-22 10:38:25 -07:00
railties Require rack-mount 0.6.0 since 0.6.1 and later can't be bundled 2010-04-14 17:04:33 -07:00
tools Use call stack printer if available 2010-04-04 11:56:49 -07:00
.gitignore Ignore generated railties RDocs [#4289 state:resolved] 2010-03-28 22:45:29 -07:00
Gemfile Rename config.cookie_secret to config.secret_token and pass it as configuration in request.env. This is another step forward removing global configuration. 2010-04-05 12:00:24 +02:00
load_paths.rb Bust gem prelude to ensure bundler's in the load path. Not sure what's broken here. 2010-03-27 12:06:27 -07:00
RAILS_VERSION Bump the version 2010-04-04 21:05:54 -07:00
rails.gemspec moved rails binary to rails gem, so rubygems can find specific versions of rails [#4382 state:resolved] 2010-04-12 19:56:38 -07:00
Rakefile Make Railties RDoc task work again [#4291 state:resolved] 2010-03-28 22:45:03 -07:00
release.rb Simple release script 2010-04-13 12:26:15 -07:00
version.rb Update versions (otherwise you install a gem from source as beta3 but internally it's beta2) and update CHANGELOG. 2010-04-10 12:17:34 +02:00