Sha256: f8814cbb517e79e554da5304bff2e6b291234b12db99c5ce6c9d52c05158e9c2

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

require 'netzke/basepack/version'
require 'netzke/active_record'

module Netzke
  module Basepack
    mattr_accessor :with_icons

    mattr_accessor :icons_uri

    class << self
      # Called from netzke-basepack.rb
      def init
        Netzke::Core.javascripts << "#{File.dirname(__FILE__)}/../../javascripts/basepack.js"
        Netzke::Core.stylesheets << "#{File.dirname(__FILE__)}/../../stylesheets/basepack.css"
      end

      # Use it 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

2 entries across 2 versions & 1 rubygems

Version Path
netzke-basepack-0.6.2 lib/netzke/basepack.rb
netzke-basepack-0.6.1 lib/netzke/basepack.rb