Created
January 9, 2015 07:50
-
-
Save hieuk09/4f141e631d56f286a7d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
namespace :something do | |
task execute_patch: :environment do | |
# OtherClass is used in MyClass | |
OtherClass.class_eval do | |
def foo | |
'bar' | |
end | |
end | |
loop do | |
MyClass.execute(...) | |
end | |
OtherClass.class_eval do | |
def foo | |
'foo' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment