Sha256: 046bd9e130ccc4879fc5cae1153c40a7cd36c6cb8896b03c14628aa4ef66e719
Contents?: true
Size: 400 Bytes
Versions: 3
Compression:
Stored size: 400 Bytes
Contents
module Admin module DashboardHelper def applications render "admin/helpers/dashboard/applications" end def resources(admin_user) available = Typus.resources.map do |resource| resource if admin_user.resources.include?(resource) end.compact render "admin/helpers/dashboard/resources", :resources => available end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typus-3.0.6 | app/helpers/admin/dashboard_helper.rb |
typus-3.0.5 | app/helpers/admin/dashboard_helper.rb |
typus-3.0.4 | app/helpers/admin/dashboard_helper.rb |