Sha256: 3b9fc376746147977ac94b0f325b2659377f254c5fdbca15e6f9f121c67a2095
Contents?: true
Size: 793 Bytes
Versions: 5
Compression:
Stored size: 793 Bytes
Contents
class Kaui::TagsController < Kaui::EngineController def index end def pagination searcher = lambda do |search_key, offset, limit| Kaui::Tag.list_or_search(search_key, offset, limit, options_for_klient) end data_extractor = lambda do |tag, column| [ tag.tag_id, tag.object_id, tag.object_type, tag.tag_definition_name ][column] end formatter = lambda do |tag| url_for_object = view_context.url_for_object(tag.object_id, tag.object_type) [ tag.tag_id, url_for_object ? view_context.link_to(tag.object_id, url_for_object) : tag.object_id, tag.object_type, tag.tag_definition_name ] end paginate searcher, data_extractor, formatter end end
Version data entries
5 entries across 5 versions & 1 rubygems