Sha256: 5735e2f0383505178649e08b3f7adf6dcdad57307b4133a23c6dd3cdac3afc28

Contents?: true

Size: 248 Bytes

Versions: 44

Compression:

Stored size: 248 Bytes

Contents

module Marty
  module EnumHelper
    def self.pg_enum?(klass:)
      return true if klass.is_a? Marty::PgEnum
      return true if Marty::PgEnum === klass
      return klass._pg_enum? if klass.respond_to?(:_pg_enum?)

      false
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
marty-14.3.0 app/helpers/marty/enum_helper.rb
marty-14.0.0 app/helpers/marty/enum_helper.rb
marty-13.0.2 app/helpers/marty/enum_helper.rb
marty-11.0.0 app/helpers/marty/enum_helper.rb
marty-10.0.3 app/helpers/marty/enum_helper.rb
marty-10.0.2 app/helpers/marty/enum_helper.rb
marty-10.0.0 app/helpers/marty/enum_helper.rb
marty-9.5.1 app/helpers/marty/enum_helper.rb
marty-9.5.0 app/helpers/marty/enum_helper.rb
marty-9.3.3 app/helpers/marty/enum_helper.rb
marty-9.3.2 app/helpers/marty/enum_helper.rb
marty-9.3.0 app/helpers/marty/enum_helper.rb
marty-8.5.0 app/helpers/marty/enum_helper.rb
marty-8.4.1 app/helpers/marty/enum_helper.rb
marty-8.3.1 app/helpers/marty/enum_helper.rb
marty-8.2.0 app/helpers/marty/enum_helper.rb
marty-8.0.0 app/helpers/marty/enum_helper.rb
marty-6.1.0 app/helpers/marty/enum_helper.rb
marty-5.2.0 app/helpers/marty/enum_helper.rb
marty-5.1.4 app/helpers/marty/enum_helper.rb