Sha256: acb93361d93907a1c90e8de6b75380738e0c562361c2f70537947ca1b017c931
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
require 'fiona7/tasks/loader' module Fiona7 class TasksController < ActionController::Base def index @details_view = self.details_view_lambda @tasks = Fiona7::Tasks::Loader.new(self.user_name, self.groups).call end protected def user_name rsession.user_name end def groups rsession.user.groups unless params[:mode] == 'user' end def details_view_lambda lambda do |obj| begin lookup_context.find(obj.details_view_path).present? rescue ActionView::MissingTemplate false end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems