Skip to content

Instantly share code, notes, and snippets.

@mohnish
Last active March 31, 2016 17:43
Show Gist options
  • Save mohnish/565e85d2a2d21a6ff7590f50c3ec0858 to your computer and use it in GitHub Desktop.
Save mohnish/565e85d2a2d21a6ff7590f50c3ec0858 to your computer and use it in GitHub Desktop.
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