Skip to content

adrianss/flex_observers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlexObservers
=============

When you need a transaction block without notify observers


Example
=======

person = User.new({ :name => "Joe Doe" })
person.without_observers("UserObserver") do
  person.save
end

person = User.new({ :name => "Joe Doe" })
person.without_observers("UserObserver", "SyncInfoObserver") do
  person.save
end

person = User.new({ :name => "Joe Doe" })
person.without_observers("*") do
  person.save
end


Copyright (c) 2010 Adrian Sanchez, released under the MIT license

About

Rails Plugin that skip observers when you need so.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages