1. 22 5月, 2020 1 次提交
  2. 21 5月, 2020 12 次提交
  3. 20 5月, 2020 23 次提交
  4. 19 5月, 2020 4 次提交
    • A
      Merge pull request #39338 from p8/did-you-mean-for-has-many-through · e3c7ba46
      Aaron Patterson 提交于
      Add DidYouMean for HasManyThroughAssociationNotFoundError
      e3c7ba46
    • P
      Update aws-sdk-s3 dependency · 84057dab
      Paul Blaze 提交于
      whitelist_headers support added in 1.48.0:
      https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-sdk-s3/CHANGELOG.md#1480-2019-08-30
      84057dab
    • P
      Add DidYouMean for ParameterMissing · 5411565d
      Petrik 提交于
      If a parameter isn't found we can suggest similar params:
      
      ```
      class BooksController < ActionController::Base
        def create
          params.require(:book).require(:name)
          head :ok
        end
      end
      
      post :create, params: { magazine: { name: "Mjallo!" } }
      
      param is missing or the value is empty: book
      Did you mean?  controller
                     action
                     magazine
      
      post :create, params: { book: { title: "Mjallo!" } }
      
      param is missing or the value is empty: name
      Did you mean?  title
      
      ```
      5411565d
    • P
      Add DidYouMean for HasManyThroughAssociationNotFoundError · 9082364a
      Petrik 提交于
      If a has_many :through association isn't found we can suggest similar associations:
      
      ```
      class Author
        has_many :categorizations, -> { }
        has_many :categories, through: :categorizations
        has_many :categorized_posts, through: :categorizations, source: :post
        has_many :category_post_comments, through: :categories, source: :post_comments
      
        has_many :nothings, through: :kateggorisatons, class_name: "Category"
      end
      
      Author.first.nothings
      
      Could not find the association :kateggorisatons in model Author
      Did you mean?  categorizations
                     categories
                     categorized_posts
                     category_post_comments
      ```
      9082364a