ActiveRecord meta methods for attribute outputs.
Add this line to your application's Gemfile:
gem 'meta_output'
And then execute:
$ bundle
Or install it yourself as:
$ gem install meta_output
Simple meta methods for your active record models.
Add the attributes to this method to strip leading and trailing whitespace to the output of the attribute.
The gem is available as open source under the terms of the MIT License.