Sha256: 2d42d21457687956b6299237f6832ea7a6b1ea6afbd2a976895878653297d852
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
module Comfy::Admin::Cms::PagesHelper def page_actions(page) states = page.aasm.permissible_events states.select! do |state| can?(:manage, 'contents.page.'+state.to_s) end states end def cached_timeout_for_select { "Uncached" => 0, "15 minutes" => 15.minutes, "30 minutes" => 30.minutes, "1 hour" => 1.hour, "3 hours" => 3.hours, "24 hours" => 1.day, "15 days" => 15.days, "30 days" => 30.days }.map {|k,v| [k, v.to_i] } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cms-fortress-1.3.0.rc2 | app/helpers/comfy/admin/cms/pages_helper.rb |
cms-fortress-1.3.0.rc1 | app/helpers/comfy/admin/cms/pages_helper.rb |