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
body { | |
white-space: pre; | |
font-family: monospace; | |
font-family: inconsolata; | |
background: #042029; | |
color: #819090; | |
} | |
.property { | |
font-weight: normal; |
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
Rake::Task['assets:precompile'].clear | |
namespace :assets do | |
desc "Compile all the assets named in config.assets.precompile" | |
task :precompile do | |
# We need to do this dance because RAILS_GROUPS is used | |
# too early in the boot process and changing here is already too late. | |
if ENV["RAILS_GROUPS"].to_s.empty? || ENV["RAILS_ENV"].to_s.empty? | |
ENV["RAILS_GROUPS"] ||= "assets" |
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 ArelScopes | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Create chainable arel scopes | |
# Example: | |
# class Post | |
# arel_scope :published, lambda { arel_table[:published_at].gteq(Time.now) } | |
# arel_scope :written_by, lambda { |user| arel_table[:author_id].eq(user.id) } |
NewerOlder