spring
spring copied to clipboard
Rails application preloader
Hi, We have run into an issue with our usage of Spring (I believe it is the same issue that folks are running in to here: https://github.com/rails/spring/issues/323). In our case,...
The error that occurs is:  How may I fix this error? Thankyou
Consider the following structure: ``` class Section < ActiveRecord::Base belongs_to :sectionable, polymorphic: true end class MarketSection < Section end class MarketNotesSection < MarketSection end ``` When doing a query for...
I've started working with Spring on our existing app and noticed that from time to time I get the `superclass mismatch for class` bug, mostly for our Interactors. What has...
First, I add an `admin?` method to `User`   It works! Of course `rails c` will run spring in the background. Now I'll change `admin?` to `isAdmin?`  I'll...
See the following gist: https://gist.github.com/smtlaissezfaire/0cb78055f1524d473c48bfc8a1935a94
Sometimes, different models need to connect to different databases or as different users. In [lib/spring/application.rb](https://github.com/rails/spring/blob/521090cfc862635d90720e583f0e97e36be05616/lib/spring/application.rb#L251), we make the assumption that the only model that needs to connect to the database...
Hey team, Here's an issue. Current version is 2.0.2, full-repo clone to `vendor/gems/spring` (see below). `Gemfile`: ``` group :development do gem "spring", path: Pathname(__dir__).realpath + "vendor/gems/spring" ``` ```sh $ bundle...
I need to run `DatabaseCleaner.clean_with(:truncation)` before forking so I added it to `config/spring.rb`. This caused spring server to exit with timeout after 20 seconds. I looked for a way to...
Possibly related to https://github.com/rails/spring/issues/544. The `rake` command is leveraging spring, but the `rails` command does not. ``` 2.5.0:rails-5.2 % spring stop Spring stopped. 2.5.0:rails-5.2 % ./bin/rails routes Prefix Verb URI...