Last active
March 31, 2016 17:43
-
-
Save mohnish/565e85d2a2d21a6ff7590f50c3ec0858 to your computer and use it in GitHub Desktop.
This file contains 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 Steppable | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
def instance_grant_method | |
puts "Say my name!" | |
puts "Walter White?" | |
end | |
module ClassMethods | |
def classic_grant_method | |
puts "Sup, dawg? herd you like loops" | |
end | |
end | |
end | |
class CoolModel < ActiveRecord::Base | |
include Steppable | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment