Converts activerecord columns to return sym object
Install the gem and add to the application's Gemfile by executing:
$ bundle add semblable
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install semblable
Include Semblable un your active record class
include Semblable
Set the column's you wish to always to return a symbol type
symbolify :name
Bug reports and pull requests are welcome on GitHub at https://github.com/bsh185/semblable. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Semblable project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.