Class: Decidim::Admin::StaticPageContentBlockCell

Inherits:
ContentBlockCell show all
Defined in:
app/cells/decidim/admin/static_page_content_block_cell.rb

Instance Method Summary collapse

Methods inherited from ContentBlockCell

#component, #name

Instance Method Details

#content_block_pathObject



12
13
14
# File 'app/cells/decidim/admin/static_page_content_block_cell.rb', line 12

def content_block_path
  decidim_admin.static_page_content_block_path(scoped_resource, model)
end

#decidim_adminObject



16
17
18
# File 'app/cells/decidim/admin/static_page_content_block_cell.rb', line 16

def decidim_admin
  Decidim::Admin::Engine.routes.url_helpers
end

#edit_content_block_pathObject



8
9
10
# File 'app/cells/decidim/admin/static_page_content_block_cell.rb', line 8

def edit_content_block_path
  decidim_admin.edit_static_page_content_block_path(scoped_resource, model)
end