module SocialStream::Controllers::Objects::UpperInstanceMethods

Methods that should be included after the included block

Public Instance Methods

Protected Instance Methods

permitted_params() click to toggle source
# File lib/social_stream/controllers/objects.rb, line 48
def permitted_params
  params.permit(self.class.model_class.to_s.underscore.to_sym => all_allowed_params)
end

Private Instance Methods

build_collection() click to toggle source

Uses the {ActivityObject#collection} method to retrieve the objects collection

# File lib/social_stream/controllers/objects.rb, line 61
def build_collection
  self.class.model_class.                          # @posts = Post.
    collection(profile_subject, current_subject).  #   collection(profile_subject, current_subject).
    page(params[:page])                            #   page(params[:page])
end
collection() click to toggle source

Memoize pattern to retrieve objects collection

# File lib/social_stream/controllers/objects.rb, line 55
def collection
  collection_variable_get ||
    collection_variable_set(build_collection)
end