Sha256: 0e71739622cb3ae4047d85f3e0447fcaab2610435739659b47e6e94437082ab8

Contents?: true

Size: 456 Bytes

Versions: 8

Compression:

Stored size: 456 Bytes

Contents

module Konacha
  class SpecsController < ActionController::Base
    rescue_from Konacha::Spec::NotFound do
      render :text => "Not found", :status => 404
    end

    def parent
      @run_mode = params.fetch(:mode, Konacha.mode).to_s.inquiry
      @specs = Konacha::Spec.all(params[:path])
    end

    def iframe
      @spec = Konacha::Spec.find_by_name(params[:name])
      @stylesheets = Konacha::Engine.config.konacha.stylesheets
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
konacha-3.1.0 app/controllers/konacha/specs_controller.rb
konacha-3.0.0 app/controllers/konacha/specs_controller.rb
konacha-2.7.0 app/controllers/konacha/specs_controller.rb
konacha-2.6.0 app/controllers/konacha/specs_controller.rb
konacha-2.5.1 app/controllers/konacha/specs_controller.rb
konacha-2.5.0 app/controllers/konacha/specs_controller.rb
konacha-2.4.0 app/controllers/konacha/specs_controller.rb
konacha-2.3.0 app/controllers/konacha/specs_controller.rb