bploetz / versionist

A plugin for versioning Rails based RESTful APIs.
MIT License
971 stars 51 forks source link

Is there a way to skip presenters generation? #55

Closed Altonymous closed 10 years ago

Altonymous commented 10 years ago

It would be ideal for those of us who prefer other mechanisms to build out our views.

I am using active_model_serializers, I know others use rabl and jbuilder. The presenters just end up in the way...

bploetz commented 10 years ago

Not currently. Assuming you're using the new api generator you'd have to manually rm -rf the presenters and their specs.

Altonymous commented 10 years ago

Okay..

chrishough commented 10 years ago

this seems to work in the application.rb file:

    config.generators do |generate|
      generate.helper false
      generate.assets false
      generate.view_specs false
    end
bploetz commented 10 years ago

Thanks @chrishough !