Module: SocialStream::Controllers::Objects::UpperInstanceMethods

Defined in:
lib/social_stream/controllers/objects.rb

Overview

Methods that should be included after the included block

Instance Method Summary collapse

Instance Method Details

#destroyObject



44
45
46
47
48
# File 'lib/social_stream/controllers/objects.rb', line 44

def destroy
  @post_activity = resource.post_activity

  destroy!
end

#searchObject



38
39
40
41
42
# File 'lib/social_stream/controllers/objects.rb', line 38

def search
  collection_variable_set self.class.model_class.search(params[:q], search_options)

  render :layout => false
end