Skip to content

Instantly share code, notes, and snippets.

@charly
Created April 13, 2009 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charly/94337 to your computer and use it in GitHub Desktop.
Save charly/94337 to your computer and use it in GitHub Desktop.
# 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