Sha256: c78158dcd3b9ad0da3c5611c3160bd47be8ba71b3e4ef6764b28004874f7ef84

Contents?: true

Size: 660 Bytes

Versions: 3

Compression:

Stored size: 660 Bytes

Contents

class System::MetaDefinitionsController < System::SystemController
  unloadable
  inherit_resources
  respond_to :html

  def index
    @meta_definitions = MetaDefinition.roots
    @meta_definition = MetaDefinition.new
  end

  def update
    update! { system_meta_definitions_path }
  end

  def create
    create! { system_meta_definitions_path }
  end

  def up
    @meta_definition = MetaDefinition.find(params[:id])
    @meta_definition.move_higher
    redirect_to system_meta_definitions_path
  end

  def down
    @meta_definition = MetaDefinition.find(params[:id])
    @meta_definition.move_lower
    redirect_to system_meta_definitions_path
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qcms-2.1.0 app/controllers/system/meta_definitions_controller.rb
qcms-2.0.0 app/controllers/system/meta_definitions_controller.rb
qcms-1.3.10 app/controllers/system/meta_definitions_controller.rb