Support for Rails 5
Any chance we could merge all updates re: Rails 4.2 and make it work with Rails 5?
Check my response (latest) to this SO thread: http://stackoverflow.com/questions/7275496/tableless-model-in-rails-3-1/39440075#39440075
To make that solution working with ActiveRecord I had to include override for the load_schema method to avoid checking the database table name.
@jarl-dk It would be awesome if we could get this merged and the gem updated.
Hello -
I was wondering if there is a PR out for this that could be merged. If not, what sort of work can be done? I tried using the solution in that stack overflow link but ran into some issues (namely, when initializing models, we set attributes, such as id=, which fails).
Is there anything I can do to help to get support for Rails 5 (and ideally a Rails 4.2/Rails 5 compatible version as an upgrade path)? I can't promise I could help but I'd like to at least learn what needs to be done.
@AlexEvanczuk @januszm @matteeyah While at my previous job, I fixed the Rails5 issues, added some features, renamed, and released a new gem, since I have no expectation of support from this one.
Original PR: https://github.com/softace/activerecord-tableless/pull/32
Check it out! • https://github.com/pboling/activerecord-tablefree • https://rubygems.org/gems/activerecord-tablefree
Thanks @pboling . Will take a look when I get a chance!