app/controllers/profiles_controller.rb in social_stream-0.4.3 vs app/controllers/profiles_controller.rb in social_stream-0.4.4
- old
+ new
@@ -1,5 +1,9 @@
class ProfilesController < InheritedResources::Base
belongs_to_subjects(:singleton => true)
+
+ load_and_authorize_resource :profile,
+ :through => SocialStream.subjects,
+ :singleton => true
respond_to :html, :xml, :js
end