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

Version Path
kayessess-0.3.0 app/controllers/kayessess/application_controller.rb
kayessess-0.2.11 app/controllers/kayessess/application_controller.rb
kayessess-0.2.10 app/controllers/kayessess/application_controller.rb
kayessess-0.2.9 app/controllers/kayessess/application_controller.rb
kayessess-0.2.8 app/controllers/kayessess/application_controller.rb
kayessess-0.2.7 app/controllers/kayessess/application_controller.rb
kayessess-0.2.5 app/controllers/kayessess/application_controller.rb
kayessess-0.2.4 app/controllers/kayessess/application_controller.rb
kayessess-0.2.3 app/controllers/kayessess/application_controller.rb
kayessess-0.2.2 app/controllers/kayessess/application_controller.rb
kayessess-0.2.1 app/controllers/kayessess/application_controller.rb