carlesjove / collection_json_serializer

A Ruby gem to respond with Collection+JSON
MIT License
3 stars 1 forks source link

Require active_support in main file #42

Closed christopheradams closed 9 years ago

christopheradams commented 9 years ago

I couldn't get the examples to run until I tracked down which methods from ActiveSupport are used in the gem and required them manually.

I added the requires to the main lib file and consequently they are not needed in the test helper. I didn't see anything from inflector being used, just json and the present? method.

I don't use Rails, so let me know if I got any of this wrong. I'll be watching this gem closely!

carlesjove commented 9 years ago

Oops! Sorry for this. I was using AS at some point for pluralization and stuff, and later decided to get rid of it. I just forgot that present? was still being used. I'll merge it and later on I'll try to remove all AS stuff. Thanks!