Sha256: ca8b286408966d6e7035190368cd93473aefa21f649713da2e907975ebbdec8f
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
class Transit::ContextsController < Transit::TransitController include Transit::Helpers::ControllerHelpers unloadable respond_to :js def new @package = scope_class.find(params["#{scope_name}"]) @context = params[:type].classify.constantize.new respond_with(@context) end def destroy @package = scope_class.find(params["#{scope_name}"]) @context = scope_class.find(params[:id]) @field.destroy flash[:success] = "The selected field has been removed." respond_with(@field) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transit-0.0.1 | app/controllers/transit/contexts_controller.rb |