The Metova gem provides a plethora of functionality for Rails apps.
Installation
Because AMS 0.10.0 is not released to RubyGems, it should be installed separately in your Gemfile instead of being a dependency of metova
.
gem 'metova'
gem 'active_model_serializers', github: 'rails-api/active_model_serializers'
Then bundle install
.
API Responder
This engine includes a Responder for use with the responders
gem. Rails responders are executed when calling
respond_with
in a controller action. To gain the full effect of these libraries, you should always be using
respond_with
instead of the "default" Rails respond_to do |format|
blocks.
To enable the Responder, add this line to the top of your API base controller:
self.responder = Metova::Responder
Documentation
Please see the Wiki for full documentation!
Contributing
- Fork it ( https://github.com/metova/metova-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Add Tests
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request