Sha256: 64f62d17e7c8fdc51e51303b0933469d0dbd3cd574ef50493cf94eb06b0830a5
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 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, Kayessess.styleguide_location || '/app/assets/stylesheets')) @styleguide = Kayessess::Styleguide.new(parser) end def not_found raise ActionController::RoutingError.new('Not Found') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kayessess-0.4.0 | app/controllers/kayessess/application_controller.rb |