Sha256: b99848d653a166e51e080a47d559fb4ac4c99559235a24a702d8dcfc0113ab15
Contents?: true
Size: 792 Bytes
Versions: 11
Compression:
Stored size: 792 Bytes
Contents
class ManifestationRelationshipsController < InheritedResources::Base load_and_authorize_resource before_filter :prepare_options, :except => [:index, :destroy] def prepare_options @manifestation_relationship_types = ManifestationRelationshipType.all end def new @manifestation_relationship = ManifestationRelationship.new(params[:manifestation_relationship]) @manifestation_relationship.parent = Manifestation.find(params[:manifestation_id]) rescue nil @manifestation_relationship.child = Manifestation.find(params[:child_id]) rescue nil end def update @manifestation_relationship = ManifestationRelationship.find(params[:id]) if params[:move] move_position(@manifestation_relationship, params[:move]) return end update! end end
Version data entries
11 entries across 11 versions & 1 rubygems