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

Version Path
typus-3.0.12 app/helpers/admin/dashboard_helper.rb
typus-3.0.11 app/helpers/admin/dashboard_helper.rb
typus-3.0.11.rc5 app/helpers/admin/dashboard_helper.rb
typus-3.0.11.rc4 app/helpers/admin/dashboard_helper.rb
typus-3.0.11.rc3 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc6 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc5 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc4 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc3 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc2 app/helpers/admin/dashboard_helper.rb
typus-3.0.11.rc2 app/helpers/admin/dashboard_helper.rb
typus-3.0.11.rc1 app/helpers/admin/dashboard_helper.rb
typus-3.1.0.rc1 app/helpers/admin/dashboard_helper.rb
typus-3.0.10 app/helpers/admin/dashboard_helper.rb
typus-3.0.9 app/helpers/admin/dashboard_helper.rb