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
[user] | |
name = Sean Walberg | |
email = [email protected] | |
[color] | |
ui = auto | |
[core] | |
editor = /usr/bin/vim | |
[alias] | |
co = checkout | |
ci = commit |
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
class ActionController::Base | |
def self.check_signatures(key, *args) | |
before_filter lambda { check_signature(key)}, *args | |
end | |
def self.check_signature(key) | |
raise InvalidWebhookSignature | |
end | |
end |
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
class Blah | |
def self.foo(&block) | |
bar | |
end | |
def bar(&block) | |
block.call("abc") | |
end | |
end |
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
class MyClass | |
def self.blah(opts, &block) | |
result = somefunction(opts) | |
block.call(result) | |
end | |
end | |
class YourClass | |
def self.blah(opts) | |
result = somefunction(opts) |
NewerOlder