Sha256: d7f1812c8b91004f72167d18465cc10f08393ccabe0d1c5e92e31afa92179b4b

Contents?: true

Size: 261 Bytes

Versions: 11

Compression:

Stored size: 261 Bytes

Contents

# Changes context for users to represent other subjects
class RepresentationsController < ApplicationController
  def create
    self.current_subject = Representation.new(params[:representation]).subject

    redirect_to(request.referer || home_path)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
social_stream-0.4.3 app/controllers/representations_controller.rb
social_stream-0.4.2 app/controllers/representations_controller.rb
social_stream-0.4.1 app/controllers/representations_controller.rb
social_stream-0.4.0 app/controllers/representations_controller.rb
social_stream-0.3.6 app/controllers/representations_controller.rb
social_stream-0.3.5 app/controllers/representations_controller.rb
social_stream-0.3.4 app/controllers/representations_controller.rb
social_stream-0.3.3 app/controllers/representations_controller.rb
social_stream-0.3.2 app/controllers/representations_controller.rb
social_stream-0.3.1 app/controllers/representations_controller.rb
social_stream-0.3.0 app/controllers/representations_controller.rb