Closed derekprior closed 8 years ago
I just ran into this and temporarily fixed it using a lowercase module name module: "v1"
Ah yes, I thought this sounded familiar. We first ran into this problem when Rails 4 was released, as they changed it so that constant names (i.e. upper case module names) were no longer accepted in routes, and had to be lowercase. I had added logic to deal with this (see https://github.com/bploetz/versionist/blob/master/lib/versionist/routing.rb#L72-L83), but now that Rails 5 is a thing, I'll change this to apply to versions of Rails >= 4.
One sec, I'll push up a branch for you guys to try......
@derekprior @johnrees Can you point your Gemfile at the following branch, remove your manual fixes to the module name used by api_version
, and see if this works for you now on Rails 5?
gem 'versionist', :git => 'https://github.com/bploetz/versionist.git', :branch => 'fix/issue74'
@bploetz Successfully reproduced on Rails 5.0.0.beta3 with master. The issue74 branch solves this issue for me.
versionist 1.5.0 has been released with this fix. Thanks everyone.
The following declaration works with Rails 4.2.x:
When running with Rails 5, we get: