Sha256: 5348b13b826343e34c82b424d80d2f735ea72a4648fbed1a4ddec0eea872bbb2

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

module ExtJS
    class MVC
      @@success_property = :success
      @@message_property = :message
      @@root = :data
      cattr_accessor :success_property
      cattr_accessor :message_property
      cattr_accessor :root
      
      require 'model/base'
      
      # Detect orm, include appropriate mixin.
      if defined?(ActiveRecord)
        require 'model/active_record'
      elsif defined?(DataMapper)
        require 'model/data_mapper'
      elsif defined?(MongoMapper)
        require 'model/mongo_mapper'
      end

      # Rails-style Array#extract_options! used heavily
      if defined?(Merb)
        require 'core_ext/array/extract_options'
      end

      # ExtJS Component and Store wrappers
      require 'extjs/component'
      require 'extjs/data/store'

      # Component/Store view-helpers
      require 'helpers/component'
      require 'helpers/store'

      # Controller mixin.  Works for both Rails and Merb.
      require 'controller/controller'

   end
end

#require 'test/macros'

#class ActiveSupport::TestCase < Test::Unit::TestCase
#  extend ExtJS::TestMacros
#end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
extjs-mvc-0.2.8 lib/extjs-mvc.rb