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

Version Path
typus-3.1.0.rc14 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc13 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc12 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc11 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc10 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc9 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc8 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc7 app/helpers/admin/dashboard_helper.rb