Sha256: fcae1d59af02bc549ebdd9a8a91a56ef8cf6a669a7aca7be866ad5f1bb44d911

Contents?: true

Size: 250 Bytes

Versions: 7

Compression:

Stored size: 250 Bytes

Contents

module Gummi
  class DefaultIndex
    include Gummi::Index

    def self.name
      if defined? Rails
        "#{Rails.application.class.name.deconstantize.underscore}_#{Rails.env}"
      else
        "gummi_#{Gummi.env}"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gummi-0.1.2 lib/gummi/default_index.rb
gummi-0.1.1 lib/gummi/default_index.rb
gummi-0.1.0 lib/gummi/default_index.rb
gummi-0.0.9 lib/gummi/default_index.rb
gummi-0.0.8 lib/gummi/default_index.rb
gummi-0.0.7 lib/gummi/default_index.rb
gummi-0.0.6 lib/gummi/default_index.rb