Permalink
Commits on Apr 9, 2017
  1. Document version 5.2.1

    parndt committed Apr 9, 2017
Commits on Jan 25, 2017
  1. Sequentially slugged bug fixes (#774)

    * Use last candidate slug
    Add fix when used which History thanks to @kylefleming
    vddgil committed with parndt Jan 25, 2017
  2. Merge pull request #782 from mrjlynch/master

    Change ActiveRecord::Base to ApplicationRecord
    parndt committed on GitHub Jan 25, 2017
  3. Merge pull request #779 from cgunther/fix-issue-765

    Assign to configured slug column, not "slug", when validation fails
    parndt committed on GitHub Jan 25, 2017
Commits on Dec 7, 2016
Commits on Dec 5, 2016
  1. Assign to configured slug column, not "slug", when validation fails

    1f8af74 mistakenly assigns to the literal `slug` method, rather than
    the configured `slug_column`. As a result, models using a custom
    `slug_column` get an error raised when validations fail that `slug=` is
    an undefined method.
    
    Fixes #765.
    cgunther committed Dec 2, 2016
Commits on Dec 1, 2016
  1. Prepare for 5.2.0 release.

    Closes #766
    parndt committed Dec 1, 2016
Commits on Nov 19, 2016
  1. Merge pull request #770 from outstand/fix-require-ar

    Require active record before using it
    parndt committed on GitHub Nov 19, 2016
  2. Fix link to contributors in changelog

    parndt committed on GitHub Nov 19, 2016
  3. Set version to 5.2.0 release

    parndt committed Nov 19, 2016
Commits on Sep 13, 2016
Commits on Jul 30, 2016
  1. Merge pull request #754 from nburkley/update-rails5-to-rc1

    Update rails-5 gem with activerecord/railties 5.0.0
    parndt committed on GitHub Jul 30, 2016
Commits on Jul 4, 2016
Commits on Mar 5, 2016
  1. * friendly_id now takes a routes option which, when set to anything b…

    …ut :friendlyid will generate standard rails style routes when used with e.g. polymorphic_path or form_for etc
    
    * Added a default FriendlyId::Configuration#routes value of :friendly to ensure existing behavior doesn't change and all tests continue to pass
    * Added tests for the new :routes option
    * Documented the new option
    * Updated Changelog
    
    Resolves #735
    sjaveed committed with parndt Mar 4, 2016
Commits on Feb 2, 2016
  1. Merge pull request #728 from nburkley/feature/rails-5-finders

    Added  Rails 5 Beta to test environments. Fixed :finders for Rails 5.
    kimrgrey committed Feb 2, 2016
  2. Allow travis-ci failures for jruby with rails 5

    ActiveRecord 5.* is not yet supported by activerecord-jdbc-adapter.
    Work is currently ongoing but for now allow jruby rails5 builds to fail.
    See: jruby/activerecord-jdbc-adapter#708 and
    https://github.com/jruby/activerecord-jdbc-adapter/labels/rails-5.x
    nburkley committed Jan 31, 2016
  3. Exclude rails 5 gemfile for ruby < 2.2.2

    * Rails 5 only supports ruby 2.2.2 and up. Don't use Gemfile.rails-5.0.rb with
    older unsupported versions
    nburkley committed Jan 21, 2016
  4. Ease restriction on version to include rails 5

    * Finders are only getting included via `extend` if the ActiveRecord::VERSION::MAJOR
    is 4, and ActiveRecord::VERSION::MINOR is 2. This change allows this to
    work with ActiveRecord::VERSION::MAJOR 5 also.
    nburkley committed Jan 21, 2016
Commits on Jan 13, 2016
  1. Merge pull request #726 from norman/module_for_unfriendly_id

    Mixed FriendlyId::UnfriendlyUtils to all classes that are listed in FriendlyId::UNFRIENDLY_CLASSES.
    kimrgrey committed Jan 13, 2016
  2. Mixed FriendlyId::UnfriendlyUtils to all classes that are listed in F…

    …riendlyId::UNFRIENDLY_CLASSES.
    
    If we know that class is "unfriendly" because it's included in our list of such classes
    we can just return appropriate true / false from re-implemented friendly_id? / unfriendly_id? instead of
    searching through FriendlyId::UNFRIENDLY_CLASSES each time when those methods are called.
    kimrgrey committed Jan 13, 2016
  3. Moved UNFRIENDLY_CLASSES from friendly_id to object_utils.

    We are using FriendlyId::UNFRIENDLY_CLASSES only to determine classed which are definitely "unfrienldy".
    It happens in module FrienldyId::Object utils. So, I think it's good idea to put constant somewhere close to
    only one place in the project where this constant is used =)
    kimrgrey committed Jan 13, 2016
  4. Added PR #724 into changelog

    kimrgrey committed Jan 13, 2016
  5. Merge pull request #724 from vkmita/master

    Conditionally turn off :dependent => :destory on FriendlyId::Slugs
    parndt committed Jan 13, 2016
  6. Merge pull request #722 from norman/useless_join_in_exists_by_friendl…

    …y_id
    
    Moved joins on slugs table from exists_by_friendly_id to scope_for_slug_generator
    parndt committed Jan 13, 2016
Commits on Jan 12, 2016
  1. added the ability not to delete historic slugs when the sluggable cla…

    …ss is destroyed
    
    When using acts_as_paranoid on a sluggable models, we aren't actually
    deleting the models when calling destroy. If we delete the slugs,
    we’re losing the history. We're alsosetting up a condition where a
     unique contstraint may end up being violated
    Victor Kmita committed Jan 12, 2016
Commits on Jan 8, 2016
  1. Updated the rubies we test with.

    * jruby is updated to 9.0.4.0, which was the
      latest at the time.
    * rbx-2 is removed because it often times out.
    parndt committed Jan 8, 2016
  2. Merge pull request #721 from elia/patch-2

    Add a meaningful message to AR::RecordNotFound
    parndt committed Jan 8, 2016
  3. Merge pull request #710 from cllns/embolded-link-to-docs

    Embolden the link to the more comprehensive docs
    
    [ci skip]
    parndt committed Jan 8, 2016
  4. Merge pull request #720 from norman/fixed_sequentially_slugged_when_c…

    …andidates_is_empty
    
    Frienldy_id should not generate a slug when all of canidates is nil.
    parndt committed Jan 8, 2016
Commits on Jan 7, 2016
  1. Moved joins on slugs table from FriendlyId::History#exists_by_friendl…

    …y_id? to FriendlyId::History#scope_for_slug_generator.
    
    Call of joins(:slugs) in FriendlyId::History#exists_by_friendly_id? was expected by FriendlyId::History#scope_for_slug_generator,
    but it was useless for exists_by_friendly_id? itself and led to additional INNER JOIN in query without any reason. So, it was moved.
    kimrgrey committed Jan 1, 2016
  2. Merge pull request #707 from cllns/fix-syntax-in-docs

    Update docs to use v5.0+ syntax for finding
    kimrgrey committed Jan 7, 2016