Permalink
Commits on Mar 29, 2017
  1. Merge pull request #166 from domcleal/410-prep

    Bump to 4.1.0
    domcleal committed on GitHub Mar 29, 2017
  2. Bump to 4.1.0

    domcleal committed Mar 28, 2017
  3. Merge pull request #159 from domcleal/112-sti

    STI support: searching on subclasses, parent definition inheritance
    domcleal committed on GitHub Mar 29, 2017
  4. Definitions inherit fields from STI parent class too

    When `scoped_search` is called on a parent and then its subclass, a new
    `Definition` will be created and stored on the subclass that inherits
    and merges fields with its parent.
    
    The named scope will only be registered on the parent, but the most
    specific definition from the subclass is used when the scope is called.
    This allows `Subclass.search_for` to support both parent and subclass
    fields, but `Parent.search_for` to only support parent fields.
    
    Previously fields registered on the subclass may have used the parent's
    definition causing errors finding relations as the wrong class was used.
    
    Only works with STI parents/subclasses, not regular inheritance or
    abstract classes as table and column information can safely be retrieved
    against either the parent or subclass with STI.
    
    Fixes #135
    domcleal committed Dec 19, 2016
  5. Use current class from scope when searching, not the definition class

    With an STI parent and subclass, calling `Parent.where` within a named
    scope (i.e. `search_for`) in Rails 5+ now correctly returns all parent
    and subclass records. When calling `Subclass.search_for`, this would
    return unexpected results from other subclasses.
    
    Querying the class that the scope was called on ensures the result is
    limited to that class, restoring very basic STI support.
    
    Fixes #112
    domcleal committed Dec 19, 2016
Commits on Mar 22, 2017
  1. Merge pull request #161 from domcleal/110-ext-method-tests

    ext_method unit and integration tests
    committed on GitHub Mar 22, 2017
  2. Merge pull request #164 from domcleal/av51-tag-options-integration-tests

    Replace private tag_options call with public content_tag helper
    committed on GitHub Mar 22, 2017
  3. Replace private tag_options call with public content_tag helper

    The private `tag_options` method was refactored away in
    rails/rails@a65a3bd. Adds ActionView to spec to make all HTML-safe
    extensions available.
    domcleal committed Mar 21, 2017
Commits on Mar 21, 2017
  1. Merge pull request #163 from tbrisker/future_dates

    Fixes #162 - Allow searching by future relative dates
    committed on GitHub Mar 21, 2017
  2. Merge pull request #160 from domcleal/rails51

    Test AR 5.1, Ruby 2.4
    committed on GitHub Mar 21, 2017
  3. Fixes #162 - Allow searching by future relative dates

    Date fields can now be searched using future relative time phrases, such
    as 'tomorrow', '2 weeks from now' and so on.
    tbrisker committed Mar 21, 2017
Commits on Feb 27, 2017
  1. ext_method unit and integration tests

    Fixes #110
    domcleal committed Jan 18, 2017
Commits on Feb 24, 2017
  1. Test AR 5.1, Ruby 2.4

    domcleal committed Feb 24, 2017
Commits on Dec 5, 2016
  1. Merge pull request #154 from domcleal/400-prep

    Bump to 4.0.0
    domcleal committed on GitHub Dec 5, 2016
  2. Bump to 4.0.0

    domcleal committed Dec 2, 2016
  3. Remove autocomplete helpers

    Deprecated since 3.0.0, prefer the jQuery method $(..).scopedSearch()
    provided via the asset pipeline.
    domcleal committed Dec 2, 2016
  4. Merge pull request #157 from domcleal/kwargs-specs

    Fix specs to use preferred :relation/:aliases options in definitions
    domcleal committed on GitHub Dec 5, 2016
  5. Merge pull request #156 from domcleal/sort-kwargs

    Convert sort() Rails helper to keyword arguments
    domcleal committed on GitHub Dec 5, 2016
  6. Merge pull request #155 from domcleal/kwargs

    Convert Definition::Field.new to keyword arguments
    domcleal committed on GitHub Dec 5, 2016
Commits on Dec 2, 2016
  1. Merge pull request #151 from ares/fix/wrong_through_association

    Fixes wrong association on through conditions
    domcleal committed on GitHub Dec 2, 2016
Commits on Dec 1, 2016
  1. Fixes wrong association on through conditions

    Wrong relation used to be found on target model side. If the
    condition included custom condition e.g. generated from `:source =>`
    specification, it generated invalid SQL since the source table was
    missing among join tables.
    
    This fixes the relation name for which we check extra conditions.
    ares committed Nov 16, 2016
Commits on Nov 11, 2016
  1. Merge pull request #149 from ShimShtein/validations

    Added validator option for explicit fields definition
    domcleal committed on GitHub Nov 11, 2016
Commits on Nov 10, 2016
Commits on Nov 2, 2016
  1. Merge pull request #150 from domcleal/ruby19-pg

    Remove Ruby 1.9 from test matrix
    domcleal committed on GitHub Nov 2, 2016
Commits on Aug 23, 2016
  1. Merge pull request #143 from domcleal/sort-helper-url-options

    Filter URL parameters from ActionController::Parameters in sort helper
    committed on GitHub Aug 23, 2016
Commits on Aug 19, 2016
  1. Merge pull request #147 from domcleal/138-autocomplete-quotes

    Escape quotes in autocomplete values
    committed on GitHub Aug 19, 2016
  2. Merge pull request #144 from domcleal/rspec-raise-error-class

    Specify classes/messages for raise_error matcher
    committed on GitHub Aug 19, 2016
  3. Merge pull request #146 from domcleal/uniq-rails5

    Prefer distinct over uniq on AR scopes on Rails 4+
    committed on GitHub Aug 19, 2016