Jordan Owens
Jordan Owens
Would love to see this API added in a 2.1 release as it would be really useful for Sinatra. See https://github.com/sinatra/sinatra/issues/1172.
After further investigation, I think what is needed is a method that returns a Tilt class name (String) for a particular template engine without loading the file. It looks like...
Input would be an engine, and output the string name of a template class. Similar to `Tilt.template_for` but without class loading. `lookup_template_for("erubis") # => "Tilt::ErubisTemplate"`
Hi @teckwan, so there isn't much new development going on as far as adding features. There have been others who have run into the issue you are describing when using...
@teckwan that looks like a good solution to me. I think that would help resolve the issue described here #757 as well. If you want to work on building this...
I believe so, but if anyone else can confirm that would be appreciated.
Hey @OskarEichler, sorry I just haven't had time to work on this project lately. If you can provide a PR that would be fantastic 👍
I definitely recommend switching to the Rails default upsert_all. I don't have a list of all the differences but I think a couple things may be the "recursive" import option...
Yes `:validate_uniqueness` is for ActiveRecord validations.
Using `:validate_uniqueness` will require a sql query per record...so it is basically N+1 queries.