Sha256: 0ba00279e794bba050a4b151d0303f5acbbdfa0192a0cebd15e032ba9956af91
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
module Matcha class SpecsController < ActionController::Base before_filter :set_interface, :set_mode def set_interface @interface = Matcha.interface end def set_mode @mode = Matcha.mode end def index @specs = Matcha::Spec.all end def show @spec = Matcha::Spec.find(params[:spec]) @spec or render :text => "Not Found", :status => 404 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matcha-0.9.0 | app/controllers/matcha/specs_controller.rb |