Sha256: 241d19a7775e97f97357bbba15ef1a8636421d0f207711a1cd76a716a78c0b9e

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

# Usage
The only think you have to do is mark models to be one of part of Monarchy.

You can use 2 available markers:

1. `acts_as_user`
2. `acts_as_resource`

## Acts as user
For your current `User` model or freshly generated one, add or check if exist, `acts_as_user`.
``` ruby
class User < ActiveRecord::Base
  acts_as_user
end
```

> Check documentation of [Acts as user] (https://github.com/Exelord/Monarchy/wiki/Acts-as-user)

## Acts as resource
For all models that you want to be accessible for users add `acts_as_resource`.

> Check documentation of [Acts as resource] (https://github.com/Exelord/Monarchy/wiki/Acts-as-resource)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
monarchy-2.0.0.pre.beta.1 docs/usage.md