Sha256: f837f87e7e6cb8e30c6b0bdc31c2004d26383f8bcf623ef0c8f277f4f62352bc
Contents?: true
Size: 472 Bytes
Versions: 4
Compression:
Stored size: 472 Bytes
Contents
# Widget that shows the 10 most recent section entries. Dashboard::Widget.add do |w| w.name = :recent_entries w.title = 'section_entries.widgets.titles.recent_entries' w.permission = :show_section_entry w.data = lambda do |instance| entries = Sections::Model::SectionEntry.order(:created_at.desc).limit(10) return render_file( __DIR__('../view/admin/section-entries/recent_entries.xhtml'), :entries => entries ) end end
Version data entries
4 entries across 4 versions & 1 rubygems