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