Module: EacRailsUtils::Patches::Rails4

Defined in:
lib/eac_rails_utils/patches/rails_4.rb,
lib/eac_rails_utils/patches/rails_4/active_record_associations_association_scope.rb

Defined Under Namespace

Modules: ActiveRecordAssociationsAssociationScope

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/eac_rails_utils/patches/rails_4.rb', line 12

def enabled?
  ::Rails.version < '5'
end