Commit 1091dd6a authored by azul's avatar azul
Browse files

no more message wall for now.

parent b1a777f0
......@@ -13,8 +13,6 @@ class Me::PostsController < Me::BaseController
guard :may_ALIAS_post?
guard index: :allow
after_filter :track_activity, only: :create
# /me/discussions/green/posts
def index
@other_user = @recipient
......@@ -73,8 +71,4 @@ class Me::PostsController < Me::BaseController
me_discussion_posts_path(@recipient, *args)
end
helper_method :posts_path
def track_activity
super(post: @post)
end
end
......@@ -40,8 +40,7 @@ class Activity < ActiveRecord::Base
EVENT_CREATES_ACTIVITIES = {
create_group: ['GroupCreatedActivity', 'UserCreatedGroupActivity'],
create_membership: ['GroupGainedUserActivity', 'UserJoinedGroupActivity'],
destroy_membership: ['GroupLostUserActivity', 'UserLeftGroupActivity'],
create_post: ['MessageWallActivity']
destroy_membership: ['GroupLostUserActivity', 'UserLeftGroupActivity']
}
def self.track(event, options = {})
......
......@@ -49,7 +49,7 @@ module Crabgrass
#config.active_record.whitelist_attributes = true
config.active_record.observers = :user_observer,
:relationship_observer, :post_observer, :request_to_destroy_our_group_observer,
:relationship_observer, :request_to_destroy_our_group_observer,
:request_observer, :page_observer, "tracking/page_observer",
"tracking/post_observer", "tracking/wiki_observer",
"tracking/user_participation_observer", "tracking/group_participation_observer"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment