Sha256: 5342e260f01d6fc8c5daea7e0f0e49acd29d0e8a81f6632c1ff91652c64490b6

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true
module Formtastic
  module Helpers
    # @private
    module Enum
      # Returns the enum (if defined) for the given method
      def enum_for(method) # @private
        if @object.respond_to?(:defined_enums)
          @object.defined_enums[method.to_s]
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formtastic-5.0.0 lib/formtastic/helpers/enum.rb