Sha256: 8cc72ecf4fec1230aa2f9dd0d1ebc9488a24f1e8e6634c214c445f382c1e3227

Contents?: true

Size: 330 Bytes

Versions: 10

Compression:

Stored size: 330 Bytes

Contents

module Adeia
  module Helpers
    module UserHelper
      extend ActiveSupport::Concern

      module ClassMethods

        def human_name
          model_name.i18n_key
        end
      end

      included do
        extend ClassMethods

        has_many :permissions, class_name: "Adeia::Permission"
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
adeia-0.11.0 lib/adeia/helpers/user_helper.rb
adeia-0.10.5 lib/adeia/helpers/user_helper.rb
adeia-0.10.4 lib/adeia/helpers/user_helper.rb
adeia-0.10.3 lib/adeia/helpers/user_helper.rb
adeia-0.10.2 lib/adeia/helpers/user_helper.rb
adeia-0.10.1 lib/adeia/helpers/user_helper.rb
adeia-0.10.0 lib/adeia/helpers/user_helper.rb
adeia-0.9.2 lib/adeia/helpers/user_helper.rb
adeia-0.9.1 lib/adeia/helpers/user_helper.rb
adeia-0.9.0 lib/adeia/helpers/user_helper.rb