Sha256: 0b3b470823ecae3ec64bc519c93ac339e069f5ec11534ecd9f2d50e8b2fbf8ed
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) # Rubygems and Rails Stuff require 'rubygems' require 'rails' require 'active_record' module Ropenlayer VERSION = '0.3.0' autoload :Node, 'ropenlayer/node' autoload :Localization, 'ropenlayer/localization' autoload :ActsAs, 'ropenlayer/acts_as' autoload :FormBuilder, 'ropenlayer/form_builder' module ActsAs autoload :Mapper, 'ropenlayer/acts_as/mapper' autoload :Nodeable, 'ropenlayer/acts_as/nodeable' end module JsHelper autoload :Jquery, 'ropenlayer/js_helper/jquery' autoload :Prototype, 'ropenlayer/js_helper/prototype' end module Openlayer autoload :Js, 'ropenlayer/openlayer/js' autoload :Map, 'ropenlayer/openlayer/map' autoload :Control, 'ropenlayer/openlayer/control' autoload :Feature, 'ropenlayer/openlayer/feature' module BoxControl autoload :Base, 'ropenlayer/openlayer/box_control/base' autoload :EditMap, 'ropenlayer/openlayer/box_control/edit_map' autoload :LayersSelect, 'ropenlayer/openlayer/box_control/layers_select' end module Layer autoload :Base, 'ropenlayer/openlayer/layer/base' autoload :ElementsMarker, 'ropenlayer/openlayer/layer/elements_marker' autoload :ElementsVector, 'ropenlayer/openlayer/layer/elements_vector' end end mattr_accessor :js_helper @@js_helper = Ropenlayer::JsHelper::Jquery def self.setup yield self end class Railtie < Rails::Railtie initializer 'ropenlayer.initialize' do ActiveRecord::Base.extend Ropenlayer::ActsAs ActiveSupport.on_load(:action_view) do ActionView::Helpers::FormBuilder.send :include, Ropenlayer::FormBuilder end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ropenlayer-0.3.0 | lib/ropenlayer.rb |