brcebn
brcebn
Same for me with the following request: ``` User.where(id > 10).update_all(updated_at: Date.current) ``` Error: ``` NoMethodError - undefined method `update_all' for #: ```
@anthonator I tried that too. Same error. Thank you for trying.
@chewi I'm using Rails 4.0.2. Maybe that's the problem.
@chewi It seems that a lot of methods cannot work with results coming from a "where" request. I have just tried an "includes" : ``` NoMethodError - undefined method `includes'...
It was completely my mistake. The gem squeel was missing... Just add it. Bundle install. And everything was ok. I hope this huge mistake will help someone else. Regards.
Based on the source [request_factory.rb#L218](https://github.com/rswag/rswag/blob/master/rswag-specs/lib/rswag/specs/request_factory.rb#L218) I managed to use `metadata[:operation][:host]` via ```ruby # spec/swagger_helper.rb RSpec.configure do |config| # ... config.before do |example| example.metadata[:operation][:host] = 'api.lvh.me' end # ... end ```...
This is correct. Also happening with OAS2 I would say. @romanblanco Do you think we could imagine to remove it from the generated swagger?
@romanblanco Could you help me with location of the specs to confirm this case?