Sha256: 6bb65840898864e8c545155dc238550c9e1f0ae62e01a45cee6c5407476ee736
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 Bytes
Contents
module Admin module ResourcesHelper include Admin::FiltersHelper include Admin::FormHelper include Admin::RelationshipsHelper include Admin::FilePreviewHelper include Admin::SearchHelper include Admin::SidebarHelper include Admin::TableHelper #-- # If partial `list` exists we will use it. This partial will have available # the `@items` so we can do whatever we want there. Notice that pagination # is still available. #++ def build_list(model, fields, items, resource = @resource.to_resource, link_options = {}, association = nil, association_name = nil) render "admin/#{resource}/list", :items => items rescue ActionView::MissingTemplate build_table(model, fields, items, link_options, association, association_name) end def display_link_to_previous render File.join(path, "display_link_to_previous") if params[:back_to] end private def path "admin/helpers/resources" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typus-3.0.4 | app/helpers/admin/resources_helper.rb |