>
> Essentially our project has a model named Journey, the same as Rails 3.2's
> new routing driver. As a consequence we can no longer upgrade from 3.1,
> without changing 'journey' throughout our project.
>
Why don't you rename it to MyProject::Journey and reimplement model_name
method ?
class MyProject::Journey
def self.model_name
@model_name ||= ActiveModel::Name.new ::Journey
end
end
I am not sure if that would work perfectly but you can give it a try.
Robert Pankowecki
http://robert.pankowecki.pl/
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-core/-/lCa3ywU0YhAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.