Created
April 10, 2013 23:04
-
-
Save cannapages/5359221 to your computer and use it in GitHub Desktop.
Concerning an example
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 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