Short description and motivation.
- common
class User
include ArJsonbExt
end
- jattr_acessor
class User
jattr_acessor *i%(order limit)
jattr_acessor *i%(ticket number), column: :meta, i18n: true, method_prefix: :meta
end
- soft_destroy
class User
soft_destroy
soft_destroy :jdeleted_at, scope: true, column: :meta_info
soft_destroy :is_deleted
end
Add this line to your application's Gemfile:
gem 'ar_jsonb_ext', github: 'dealglobe/ar_jsonb_ext'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ar_jsonb_ext
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.