Sha256: b689d25b9e32d1e0750167c631846791d8b18218691e746de4aa4f631e3e866e

Contents?: true

Size: 520 Bytes

Versions: 13

Compression:

Stored size: 520 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
      @javascripts = Konacha::Engine.config.konacha.javascripts
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
konacha-4.0.0 app/controllers/konacha/specs_controller.rb
konacha-3.7.0 app/controllers/konacha/specs_controller.rb
konacha-3.6.0 app/controllers/konacha/specs_controller.rb
konacha-3.5.1 app/controllers/konacha/specs_controller.rb
konacha-3.5.0 app/controllers/konacha/specs_controller.rb
konacha-3.4.0 app/controllers/konacha/specs_controller.rb
konacha-3.3.0 app/controllers/konacha/specs_controller.rb
konacha-3.2.5 app/controllers/konacha/specs_controller.rb
konacha-3.2.4 app/controllers/konacha/specs_controller.rb
konacha-3.2.3 app/controllers/konacha/specs_controller.rb
konacha-3.2.2 app/controllers/konacha/specs_controller.rb
konacha-3.2.1 app/controllers/konacha/specs_controller.rb
konacha-3.2.0 app/controllers/konacha/specs_controller.rb