Sha256: ef533ea4fa2c8b8f6b571b284fdb89216a696dc330e5c2f360d396e45693f6b7
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
module MailyHerald class Webui::DispatchesController < Webui::ResourcesController def index super do |scope| scope.not_archived end end def archived self.class.superclass.instance_method(:index).bind(self).call do |scope| scope.archived end render "index" end def update_form new @item.attributes = item_params end def destroy @item.archive! render_containers ["details", "entities"] render_update end def toggle find_item unless @item.enabled? @item.enable! else @item.disable! end render_containers ["details", "entities"] render_update 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/dispatches_controller.rb |