Module: EacRailsUtils::Patches::Rails52

Defined in:
lib/eac_rails_utils/patches/rails_5_2.rb,
lib/eac_rails_utils/patches/rails_5_2/active_model_association_method_fix.rb

Defined Under Namespace

Classes: ActiveModelAssociationMethodFix

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)

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

def enabled?
  ::Rails.version >= '5.2'
end