Created
April 13, 2009 07:55
-
-
Save charly/94337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In my Image Bank Rails App | |
class Payment < ActiveRecord::Base | |
default_scope :conditions => { :application => 'ImageBank' } | |
before_save { |p| p.application="ImageBank" } | |
end | |
# In my Live Performances Rails App | |
class Payment < ActiveRecord::Base | |
default_scope :conditions => { :application => 'LivePerformances' } | |
before_save { |p| p.application="LivePerformances" } | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment