Sha256: b4089f6d3a5c5472d7e5232aae3b0e824142a6d6c628bba11449df35c43f7486
Contents?: true
Size: 713 Bytes
Versions: 5
Compression:
Stored size: 713 Bytes
Contents
# ActsAsStrippableOn Easy way to define AR attributes that should be stripped before save ## Installation Add this line to your application's Gemfile: ```ruby gem 'acts_as_strippable_on' ``` And then execute: $ bundle Or install it yourself as: $ gem install acts_as_strippable_on ## Usage Setup ```ruby class User < ActiveRecord::Base acts_as_strippable_on :email, :login end ``` Attributes `email` and `login` will be stripped before model validation. ## Contributing 1. Fork it 2. Create your feature branch (git checkout -b my-new-feature) 3. Commit your changes (git commit -am 'Add some feature') 4. Push to the branch (git push origin my-new-feature) 5. Create new Pull Request
Version data entries
5 entries across 5 versions & 1 rubygems