Created
June 25, 2014 17:13
-
-
Save sebyx07/d53eda97f19b9ec4f3b3 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
module UserPartyActions | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def lol | |
'lol' | |
end | |
end | |
end | |
class User < ActiveRecord::Base | |
include UserPartyActions | |
end | |
User.lol #works | |
User.find(1).lol #doesnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment