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
is this like pastie? |
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
class ActiveRecord::Base | |
@@cache_store = nil | |
def self.cache_store | |
@@cache_store ||= ActionController::Base.cache_store | |
end | |
def self.caches(method_name, key = nil, options = {}, &block) | |
if key.is_a?(Hash) | |
options = key | |
key = nil |
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
// An approximation of the TaskPaper 2 Helvetidark theme for TaskPaper 3 | |
@text-color: rgb(90%, 90%, 90%); | |
@background-color: rgb(10%, 10%, 10%); | |
@font-family: 'Helvetica Neue'; | |
@user-font-size: @base-font-size - 2; | |
@selection-color: rgb(20%, 20%, 20%); | |
@invisibles-color: mix(@tint-color, @background-color, 70%); | |
@cursor-color: rgb(40%, 40%, 40%); |