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.8.5.1 lib/cantango/helpers/role_methods.rb
cantango-0.8.0 lib/cantango/helpers/role_methods.rb