Sha256: 2472e45a6eede5aaedfac3c26ae99af409f143fa6a191ffb2b2ed2054c0e8c5c
Contents?: true
Size: 258 Bytes
Versions: 8
Compression:
Stored size: 258 Bytes
Contents
module Admin::DashboardHelper def resources(admin_user) available = Typus.resources.delete_if { |r| !(admin_user.is_a?(FakeUser) || admin_user.resources.include?(r)) } render "helpers/admin/dashboard/resources", :resources => available end end
Version data entries
8 entries across 8 versions & 1 rubygems