Sha256: 522996046b09390fb9357f0603249952b9a165e03d8bcca4c3722399246b5992

Contents?: true

Size: 707 Bytes

Versions: 2

Compression:

Stored size: 707 Bytes

Contents

module MuckActivityHelper

  def activity_feed_for(activities_object)
    activities = activities_object.activities.paginate(:page => @page, :per_page => @per_page)
    render :partial => 'activities/activity_feed', :locals => { :activities_object => activities_object, :activities => activities }
  end
  
  def status_update(activities_object)
    render :partial => 'activities/status_update', :locals => { :activities_object => activities_object }
  end
  
  def delete_activity(activity, button_type = :button, button_text = t("muck.activities.clear"))
    render :partial => 'activities/delete', :locals => { :activity => activity, :button_type => button_type, :button_text => button_text }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
muck-activity-0.1.1 app/helpers/muck_activity_helper.rb
muck-activity-0.1.2 app/helpers/muck_activity_helper.rb