Sha256: 5212d04d2e63992008399f1ee0d2374a6b0428eb96adeea664d1006ac00a3ad3
Contents?: true
Size: 494 Bytes
Versions: 11
Compression:
Stored size: 494 Bytes
Contents
module Kayessess # The ApplicationController is the class which all Kayessess rails controllers inherit from. class ApplicationController < ActionController::Base before_filter :parse_styles private def parse_styles require 'kss' parser = Kss::Parser.new(File.join(Rails.root, '/app/assets/stylesheets')) @styleguide = Kayessess::Styleguide.new(parser) end def not_found raise ActionController::RoutingError.new('Not Found') end end end
Version data entries
11 entries across 11 versions & 1 rubygems