Apidock_header
  • Welcome
  • Register
  • Projects
  • Help
  • About
  • Blog
Use OpenID
  • Ruby_icon_16Ruby
  • Rspec_icon_16RSpec
  • Rails_icon_16Ruby on Rails
method

before_save

Importance_1
Ruby on Rails latest stable (v2.2.1) - 0 notes - Class: ActiveRecord::Callbacks
  • 1.0.0 (0)
  • 1.1.0 (0)
  • 1.1.1 (0)
  • 1.1.2 (0)
  • 1.1.3 (0)
  • 1.1.4 (0)
  • 1.1.5 (0)
  • 1.1.6 (0)
  • 1.2.0 (0)
  • 1.2.1 (0)
  • 1.2.2 (0)
  • 1.2.3 (0)
  • 1.2.4 (0)
  • 1.2.5 (0)
  • 1.2.6 (0)
  • 2.0.0 (38)
  • 2.0.1 (0)
  • 2.0.2 (0)
  • 2.0.3 (0)
  • 2.1.0 (0)
  • 2.2.1 (0)
  • What's this?

Related methods

  • Class methods (1)
  • Importance_0_sm included
  • Instance methods (23)
  • Importance_1_sm after_create
  • Importance_1_sm after_destroy
  • Importance_1_sm after_save
  • Importance_1_sm after_update
  • Importance_1_sm after_validation
  • Importance_1_sm after_validation_on_create
  • Importance_1_sm after_validation_on_update
  • Importance_1_sm before_create
  • Importance_2_sm before_destroy
  • Importance_1_sm before_save
  • Importance_1_sm before_update
  • Importance_1_sm before_validation
  • Importance_1_sm before_validation_on_create
  • Importance_1_sm before_validation_on_update
  • Importance_0_sm callback Icon_private_sm
  • Importance_0_sm callbacks_for Icon_private_sm (<= v2.0.3)
  • Importance_0_sm create_or_update_with_callb... Icon_private_sm
  • Importance_0_sm create_with_callbacks Icon_private_sm
  • Importance_0_sm destroy_with_callbacks
  • Importance_0_sm invoke_and_notify Icon_private_sm (<= v2.0.3)
  • Importance_0_sm notify Icon_private_sm
  • Importance_0_sm update_with_callbacks Icon_private_sm
  • Importance_0_sm valid_with_callbacks?

Icon_private_sm = private
Icon_protected_sm = protected

before_save() public

Is called before Base.save (regardless of whether it’s a create or update save).

Show source
# File activerecord/lib/active_record/callbacks.rb, line 210
    def before_save() end
Register or log in to add new notes.
  • Welcome
  • Register
  • Projects
  • Help
  • About
  • Blog


APIdock release: SPIDER STEVE (1.3) - Current revision: #1034
Supported browsers are Safari 3+, Firefox 2+, Opera 9.5 and Internet Explorer 7
If you have any comments, ideas or feedback, feel free to contact us at

APIdock copyright Nodeta Oy 2008

Go to Nodeta blog