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 ApplicationController < ActionController::Base | |
helper_method :page_title, | |
:page_description | |
# ... | |
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.Mutators.Memoize = function(method_names){ | |
Array.from(method_names).each(function(method){ | |
var old_method = this.prototype[method]; | |
this.prototype[method] = function(){ | |
if(this.__memoized[method] !== undefined) return this.__memoized[method]; | |
return this.__memoized[method] = old_method.apply(this, arguments); | |
}; | |
}, this); | |
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
module FacebookSession | |
module Session | |
def self.included(base) | |
base.class_eval do | |
cattr_accessor :finding_current | |
include Methods | |
end | |
end | |
module Methods |
NewerOlder