Module: ActiveModelAttributes::Utils

Defined in:
lib/active_model_attributes/utils.rb

Class Method Summary collapse

Class Method Details

.rails5?Boolean

Returns:

  • (Boolean)

3
4
5
# File 'lib/active_model_attributes/utils.rb', line 3

def self.rails5?
  defined?(::ActiveModel) && ::ActiveModel.gem_version >= Gem::Version.new('5.0.0')
end