Skip to content

Commit

Permalink
Added :validation to defile_model_callbacks. Now works with newest de…
Browse files Browse the repository at this point in the history
…vise.
  • Loading branch information
joeleaver committed Apr 29, 2011
1 parent be6ba50 commit 14cb55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neo4j/rails/callbacks.rb
Expand Up @@ -10,7 +10,7 @@ module Callbacks #:nodoc:

extend ActiveModel::Callbacks

define_model_callbacks :create, :save, :update, :destroy
define_model_callbacks :create, :save, :update, :destroy, :validation
end

def destroy_with_callbacks #:nodoc:
Expand Down

0 comments on commit 14cb55d

Please sign in to comment.