Sha256: f3845c2560578a2e166903eef56f3dfbab75f006a7fbdfabb3a11528f6833970

Contents?: true

Size: 1.34 KB

Versions: 21

Compression:

Stored size: 1.34 KB

Contents

# Model concerns

- #### [NeetoCommonsBackend::Sluggable](https://github.com/bigbinary/neeto-commons-backend/blob/main/app/models/concerns/neeto_commons_backend/sluggable.rb)

    This concern contain methods for managing the slugs. Please include the concern in the model where you want to manage the slugs.

    **Methods Available**

    1. ##### generate_slug
        This method can be used for generating new slug.
        For example:
        
        ```rb
        generate_slug(:title, :slug, organization.articles, title.blank?)
        ```

- #### [NeetoCommonsBackend::SoftDeletable](https://github.com/bigbinary/neeto-commons-backend/blob/main/app/models/concerns/neeto_commons_backend/soft_deletable.rb)

    This concern adds logic for soft deletion of records.

    **Methods Available**

    1. ##### `destroy`
        This method can be used to soft delete a record:
        
        ```rb
        oliver_user_object.destroy
        ```

    2. ##### `really_destroy`
        This method can be used to delete the record from table itself:
        
        ```rb
        oliver_user_object.really_destroy
        ```

- #### [NeetoCommonsBackend::DeviseValidator](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/models/concerns/devise_validator.rb)

    This concern adds validations to the email and password fields.

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neeto-commons-backend-1.0.109 docs/model_concerns/README.md
neeto-commons-backend-1.0.108 docs/model_concerns/README.md
neeto-commons-backend-1.0.107 docs/model_concerns/README.md
neeto-commons-backend-1.0.106 docs/model_concerns/README.md
neeto-commons-backend-1.0.105 docs/model_concerns/README.md
neeto-commons-backend-1.0.104 docs/model_concerns/README.md
neeto-commons-backend-1.0.103 docs/model_concerns/README.md
neeto-commons-backend-1.0.102 docs/model_concerns/README.md
neeto-commons-backend-1.0.101 docs/model_concerns/README.md
neeto-commons-backend-1.0.100 docs/model_concerns/README.md
neeto-commons-backend-1.0.99 docs/model_concerns/README.md
neeto-commons-backend-1.0.98 docs/model_concerns/README.md
neeto-commons-backend-1.0.97 docs/model_concerns/README.md
neeto-commons-backend-1.0.96 docs/model_concerns/README.md
neeto-commons-backend-1.0.95 docs/model_concerns/README.md
neeto-commons-backend-1.0.94 docs/model_concerns/README.md
neeto-commons-backend-1.0.93 docs/model_concerns/README.md
neeto-commons-backend-1.0.92 docs/model_concerns/README.md
neeto-commons-backend-1.0.91 docs/model_concerns/README.md
neeto-commons-backend-1.0.90 docs/model_concerns/README.md