Sha256: ec4439a9d71679da9ea462fc58f4891777b62fa6626e18a42f10b5f839bc26d3

Contents?: true

Size: 424 Bytes

Versions: 22

Compression:

Stored size: 424 Bytes

Contents

module CanTango
  module Helpers
    module RoleMethods
      def has_role_meth
        config.roles.has_method
      end

      def has_role_group_meth
        config.role_groups.has_method
      end

      def role_groups_list_meth
        config.role_groups.list_method
      end

      def roles_list_meth
        config.roles.list_method
      end

      def config
        CanTango.config
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 lib/cantango/helpers/role_methods.rb
cantango-0.9.4.6 lib/cantango/helpers/role_methods.rb
cantango-0.9.4.5 lib/cantango/helpers/role_methods.rb
cantango-0.9.4.3 lib/cantango/helpers/role_methods.rb
cantango-0.9.4.2 lib/cantango/helpers/role_methods.rb
cantango-0.9.4.1 lib/cantango/helpers/role_methods.rb
cantango-0.9.4 lib/cantango/helpers/role_methods.rb
cantango-0.9.3.2 lib/cantango/helpers/role_methods.rb
cantango-0.8.9.5 lib/cantango/helpers/role_methods.rb
cantango-0.8.9.4 lib/cantango/helpers/role_methods.rb
cantango-0.8.9.3 lib/cantango/helpers/role_methods.rb
cantango-0.8.9.2 lib/cantango/helpers/role_methods.rb
cantango-0.8.9.1 lib/cantango/helpers/role_methods.rb
cantango-0.8.9 lib/cantango/helpers/role_methods.rb
cantango-0.8.8.1 lib/cantango/helpers/role_methods.rb
cantango-0.8.8 lib/cantango/helpers/role_methods.rb
cantango-0.8.7 lib/cantango/helpers/role_methods.rb
cantango-0.8.6.2 lib/cantango/helpers/role_methods.rb
cantango-0.8.6.1 lib/cantango/helpers/role_methods.rb
cantango-0.8.6 lib/cantango/helpers/role_methods.rb