Skip to content

Instantly share code, notes, and snippets.

@charly
Created April 13, 2009 07:55
Show Gist options
  • 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