Sha256: 79e3d43736af6122584693b751de2b6e0e890d016966558d21b4588fd575d2a1

Contents?: true

Size: 530 Bytes

Versions: 36

Compression:

Stored size: 530 Bytes

Contents

module Lolita
  module Configuration
    module Tab
      class Default < Lolita::Configuration::Tab::Base

        def initialize *args,&block
          super
          validate
        end

        private

        def set_default_fields
          warn("Default fields are not set for DefaultTab.")
        end

        def validate options = {}
          if fields.empty?
            raise Lolita::NoFieldsGivenError, "At least one field must be specified for default tab."
          end
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
lolita-4.0.11 lib/lolita/configuration/tab/default.rb
lolita-4.2.0 lib/lolita/configuration/tab/default.rb
lolita-4.0.10 lib/lolita/configuration/tab/default.rb
lolita-4.0.9 lib/lolita/configuration/tab/default.rb
lolita-4.0.8 lib/lolita/configuration/tab/default.rb
lolita-4.0.7 lib/lolita/configuration/tab/default.rb
lolita-4.0.6 lib/lolita/configuration/tab/default.rb
lolita-4.0.5 lib/lolita/configuration/tab/default.rb
lolita-4.0.4 lib/lolita/configuration/tab/default.rb
lolita-4.0.3 lib/lolita/configuration/tab/default.rb
lolita-4.0.2 lib/lolita/configuration/tab/default.rb
lolita-4.0.1 lib/lolita/configuration/tab/default.rb
lolita-4.0.0 lib/lolita/configuration/tab/default.rb
lolita-3.4.3 lib/lolita/configuration/tab/default.rb
lolita-3.4.2 lib/lolita/configuration/tab/default.rb
lolita-3.4.1 lib/lolita/configuration/tab/default.rb
lolita-3.4.0 lib/lolita/configuration/tab/default.rb
lolita-3.3.9 lib/lolita/configuration/tab/default.rb
lolita-3.3.8 lib/lolita/configuration/tab/default.rb
lolita-3.3.7 lib/lolita/configuration/tab/default.rb