Sha256: 9d55cb19c11181fa3e6f34fb66eb53dedbf6541b86d6b4de1d9a07d0c9f32f4b
Contents?: true
Size: 974 Bytes
Versions: 1
Compression:
Stored size: 974 Bytes
Contents
module MailyHerald class Webui::SubscriptionsController < Webui::ResourcesController add_breadcrumb :label_list_plural, Proc.new{ lists_path } set_menu_item :lists def show super @list = @item.list add_breadcrumb @list.title || @list.name, list_path(@list) add_breadcrumb view_context.tw("subscriptions.show.users_subscription", user: @item.entity.to_s) @entity = @item smart_listing_create(:delivered_logs, @item.logs.delivered, :partial => "maily_herald/webui/logs/items", default_sort: {processing_at: "desc"}) smart_listing_create(:scheduled_logs, @item.logs.scheduled, :partial => "maily_herald/webui/logs/items", default_sort: {processing_at: "asc"}) end def toggle find_item @item.toggle! end protected def resource_spec @resource_spec ||= Webui::ResourcesController::Spec.new.tap do |spec| spec.klass = MailyHerald::Subscription end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maily_herald-webui-0.8.0 | app/controllers/maily_herald/webui/subscriptions_controller.rb |