Skip to content

Instantly share code, notes, and snippets.

@cannapages
Created April 10, 2013 23:04
Show Gist options
  • Save cannapages/5359221 to your computer and use it in GitHub Desktop.
Save cannapages/5359221 to your computer and use it in GitHub Desktop.
Concerning an example
module Reversable
extend ActiveSupport::Concern
module ClassMethods
def do_it
puts "holly molly this is how to bootstrap"
all.each do |post|
post.revers_content
end
end
end
def reverse_content
content.reverse if content
end
included do
puts "You just included the sickest module in all the land!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment