Sha256: b23b2003c2bae6b9ca9ded569ed350aa34e3f048ca4ce68a7fea84eb64469876

Contents?: true

Size: 705 Bytes

Versions: 34

Compression:

Stored size: 705 Bytes

Contents

class SeriesStatementRelationshipsController < InheritedResources::Base
  respond_to :html, :json
  has_scope :page, :default => 1
  load_and_authorize_resource

  def new
    @series_statement_relationship = SeriesStatementRelationship.new(params[:series_statement_relationship])
    @series_statement_relationship.parent = SeriesStatement.find(params[:parent_id]) rescue nil
    @series_statement_relationship.child = SeriesStatement.find(params[:child_id]) rescue nil
  end

  def update
    @series_statement_relationship = SeriesStatementRelationship.find(params[:id])
    if params[:move]
      move_position(@series_statement_relationship, params[:move])
      return
    end
    update!
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre16 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre15 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre14 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre13 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre12 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre11 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre10 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre9 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre8 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre7 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre6 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre5 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre4 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre3 app/controllers/series_statement_relationships_controller.rb