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.pre36 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre35 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre34 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre33 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre32 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre31 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre30 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre29 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre28 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre27 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre26 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre25 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre24 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre23 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre22 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre21 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre20 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre19 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre18 app/controllers/series_statement_relationships_controller.rb
enju_biblio-0.1.0.pre17 app/controllers/series_statement_relationships_controller.rb