Module: Opinio::Controllers::Replies

Extended by:
ActiveSupport::Concern
Included in:
Opinio::CommentsController
Defined in:
lib/opinio/controllers/replies.rb

Instance Method Summary collapse

Instance Method Details

#replyObject



10
11
12
13
14
# File 'lib/opinio/controllers/replies.rb', line 10

def reply
  @commentable_type = Opinio.model_name
  @commentable_id   = params[:id]
  @commentable      = Opinio.model_name.constantize.find(params[:id])
end