Sha256: 9a957900b2165f18b2f5aa1579645777a352b172785088a5a7f79115059838c5

Contents?: true

Size: 344 Bytes

Versions: 11

Compression:

Stored size: 344 Bytes

Contents

class RelationshipsController < ArtfullyOseController

  before_filter :load_tags

  def index
    @person = Person.find(params_person_id)

    if params[:relation_id].present?
      @relationships = @person.relationships.where(:relation_id => params[:relation_id].to_i)
    else
      @relationships = @person.relationships
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 app/controllers/relationships_controller.rb
artfully_ose-1.3.0.pre3 app/controllers/relationships_controller.rb
artfully_ose-1.3.0.pre2 app/controllers/relationships_controller.rb
artfully_ose-1.3.0.pre1 app/controllers/relationships_controller.rb
artfully_ose-1.2.0 app/controllers/relationships_controller.rb
artfully_ose-1.2.0.beta.1 app/controllers/relationships_controller.rb
artfully_ose-1.2.0.alpha.2 app/controllers/relationships_controller.rb
artfully_ose-1.2.0.alpha.1 app/controllers/relationships_controller.rb
artfully_ose-1.2.0.pre.27 app/controllers/relationships_controller.rb
artfully_ose-1.2.0.pre.26 app/controllers/relationships_controller.rb
artfully_ose-1.2.0.pre.24 app/controllers/relationships_controller.rb