Created
January 31, 2012 03:30
-
-
Save baldwindavid/1708572 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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