Hi all,
I'm using Rails 2.3.8 and declarative authorization gem 0.5.3 and ruby
1.9.2
I've been using declarative authorization for a year now and just have
jumped into an existing rails project. I've integrated declarative
authorization into it but it seems to insert itself into the routing
such that it ignores our custom path separators. We have a javascript
heavy UI that makes server calls to a controller with a date range
separated by semicolons, like this:
GET
http://localhost:3000//schedule/2012-01-03;2012-01-26
To accommodate this change we simply added this line to the very
beginning of config/routes.rb before the map block
ActionController::Routing::SEPARATORS << ";" unless
ActionController::Routing::SEPARATORS.include?(";")
Obviously this adds the semicolon as a path separator.
However as soon as I add the decl auth gem to the project the routing
to the above URL no longer works. Somehow declarative authorization
appears to be expecting slashes instead of using the routing path
separators. Does anyone have any pointers on how to address this. I
didn't see anything like this in the group archives. I'm going to dig
into the gem code to see what is happening.
Any help is greatly appreciated. Thank you.
Matt