activerecord-tableless icon indicating copy to clipboard operation
activerecord-tableless copied to clipboard

Support for Rails 5

Open januszm opened this issue 9 years ago • 4 comments

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.

januszm avatar Sep 07 '16 10:09 januszm

@jarl-dk It would be awesome if we could get this merged and the gem updated.

matteeyah avatar May 28 '17 14:05 matteeyah

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 avatar Jul 31 '18 08:07 alexevanczuk

@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

pboling avatar Aug 05 '18 05:08 pboling

Thanks @pboling . Will take a look when I get a chance!

alexevanczuk avatar Aug 06 '18 20:08 alexevanczuk