Sha256: 66e893426ae9ce6ba0fbaf4fcc9a0fd38146f9c0a3c634ef73e7235e2d6bf5cd

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

class CommentsController < InheritedResources::Base
  def create
    create! do |success, failure|
      success.html do
        add_fingerprint_and_user_id(@comment,true)
        add_able_rep("commented on",@comment)
        Reputation.add("commentor",current_user)
        redirect_to :back
      end
      failure.html { redirect_to :back }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_engine-0.0.1 app/controllers/comments_controller.rb