Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@duncanbeevers
Forked from anonymous/application_model.rb
Created April 8, 2012 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duncanbeevers/2337946 to your computer and use it in GitHub Desktop.
Save duncanbeevers/2337946 to your computer and use it in GitHub Desktop.
class ApplicationModel
extend Feedable
end
require './feedable'
require './application_model'
require './verso'
puts Verso.feed
module Feedable
def act_as_feedable
extend ClassMethods
end
module ClassMethods
def feed
self
end
end
end
class Verso < ApplicationModel
act_as_feedable
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment