Class: Konacha::SpecsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Konacha::SpecsController
- Defined in:
- app/controllers/konacha/specs_controller.rb
Instance Method Summary collapse
Instance Method Details
#iframe ⇒ Object
12 13 14 15 16 |
# File 'app/controllers/konacha/specs_controller.rb', line 12 def iframe @spec = Konacha::Spec.find_by_name(params[:name]) @stylesheets = Konacha::Engine.config.konacha.stylesheets @javascripts = Konacha::Engine.config.konacha.javascripts end |
#parent ⇒ Object
7 8 9 10 |
# File 'app/controllers/konacha/specs_controller.rb', line 7 def parent @run_mode = params.fetch(:mode, Konacha.mode).to_s.inquiry @specs = Konacha::Spec.all(params[:path]) end |