Sha256: bb8b775f1ffc61d2310bfd8e71e936a2a9790138535a008749d164f69b61d396

Contents?: true

Size: 249 Bytes

Versions: 4

Compression:

Stored size: 249 Bytes

Contents

require 'singleton'

module SimpleAdmin
  class Config
    include Singleton

    attr_accessor :per_page

    class << self
      def setup
        yield(instance)
      end

      def per_page
        instance.per_page
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-admin-0.2.0.pre.alpha lib/simple_admin/config.rb
simple-admin-0.1.2.pre.alpha lib/simple_admin/config.rb
simple-admin-0.1.1.pre.alpha lib/simple_admin/config.rb
simple-admin-0.1.0.pre.alpha lib/simple_admin/config.rb