Sha256: 488dce8150f6585eed05b83822bf103b1ab3d570f50a0aaa9fcc076ee3232f75
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
# Changes context for users to represent other subjects class RepresentationsController < ApplicationController before_filter :load_representation authorize_resource def create self.current_subject = @representation.subject redirect_to(request.referer || home_path) end private # Build representation from params def load_representation @representation = Representation.new(params[:representation]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.4.4 | app/controllers/representations_controller.rb |