Sha256: 4ccf627379c59a9b4b55b8ba5e846da1fa82e84a2678935f98b998d7604d77b3

Contents?: true

Size: 430 Bytes

Versions: 10

Compression:

Stored size: 430 Bytes

Contents

# -*- encoding : utf-8 -*-
#todo move to concern/model dir
module RademadeAdmin
  module UserModule

    def self.get_by_email(email)
      raise NotImplementedError.new "Implement 'get_by_email' method"
    end

    def method_missing(name, *arguments)
      if %w(id email password valid_password? admin?).include? name
        raise NotImplementedError.new "Implement '#{name}' method"
      end
      super
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rademade_admin-0.2.2 lib/rademade_admin/user.rb
rademade_admin-0.2.1 lib/rademade_admin/user.rb
rademade_admin-0.2.0 lib/rademade_admin/user.rb
rademade_admin-0.1.6 lib/rademade_admin/user.rb
rademade_admin-0.1.5 lib/rademade_admin/user.rb
rademade_admin-0.1.4 lib/rademade_admin/user.rb
rademade_admin-0.1.3 lib/rademade_admin/user.rb
rademade_admin-0.1.2 lib/rademade_admin/user.rb
rademade_admin-0.1.1 lib/rademade_admin/user.rb
rademade_admin-0.1.0 lib/rademade_admin/user.rb