Sha256: 086cc53c18c33d28584cd8c08cf1ddf6d7e1ceec319e33d0ac7a23e1574c0fab

Contents?: true

Size: 647 Bytes

Versions: 5

Compression:

Stored size: 647 Bytes

Contents

class System::MetaDefinitionsController < System::SystemController
  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

5 entries across 5 versions & 1 rubygems

Version Path
qcms-1.3.9 app/controllers/system/meta_definitions_controller.rb
qcms-1.3.8 app/controllers/system/meta_definitions_controller.rb
qcms-1.3.7 app/controllers/system/meta_definitions_controller.rb
qcms-1.3.6 app/controllers/system/meta_definitions_controller.rb
qcms-1.3.5 app/controllers/system/meta_definitions_controller.rb