Sha256: 0dfcb651bf7af45cc67b6b14f202dee1fca2ddb2f30e9aacaa562bff6224c77e

Contents?: true

Size: 1020 Bytes

Versions: 9

Compression:

Stored size: 1020 Bytes

Contents

require 'netzke/basepack/version'

require 'netzke/basepack/data_adapters/abstract_adapter'

if defined? ActiveRecord
  require 'netzke/basepack/active_record'
  require 'netzke/basepack/data_adapters/active_record_adapter'
end

require 'netzke/basepack/item_persistence'

module Netzke
  module Basepack
    mattr_accessor :with_icons

    mattr_accessor :icons_uri

    class << self
      # Called from netzke-basepack.rb
      def init
        %w[netzkeremotecombo xdatetime basepack columns mixins/grid_event_handlers].each do |name|
          Netzke::Core.ext_javascripts << "#{File.dirname(__FILE__)}/../../javascripts/#{name}.js"
        end

        Netzke::Core.ext_stylesheets << "#{File.dirname(__FILE__)}/../../stylesheets/basepack.css"
      end

      # Use this to confirure Basepack in the initializers, e.g.:
      #
      #     Netzke::Basepack.setup do |config|
      #       config.icons_uri = "/images/famfamfam/icons"
      #     end
      def setup
        yield self
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netzke-basepack-0.12.9 lib/netzke/basepack.rb
netzke-basepack-0.12.8 lib/netzke/basepack.rb
netzke-basepack-0.12.7 lib/netzke/basepack.rb
netzke-basepack-0.12.6 lib/netzke/basepack.rb
netzke-basepack-0.12.5 lib/netzke/basepack.rb
netzke-basepack-0.12.4 lib/netzke/basepack.rb
netzke-basepack-0.12.3 lib/netzke/basepack.rb
netzke-basepack-0.12.2 lib/netzke/basepack.rb
netzke-basepack-0.12.1 lib/netzke/basepack.rb