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