Skip to content

Instantly share code, notes, and snippets.

@baldwindavid
Created January 31, 2012 03:30
Show Gist options
  • Save baldwindavid/1708572 to your computer and use it in GitHub Desktop.
Save baldwindavid/1708572 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
belongs_to :plan # or however you get your plan - mine is actually not in an AR model
def can_do_cool_thing?
plan.can_do_cool_thing?
end
def can_do_other_cool_thing?
plan.can_do_other_cool_thing?
end
def whatever_size_limit
plan.whatever_size_limit
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment