Sha256: 99e81070efc3dbe67aef62551c30cc000753e17297bd2697c931aaf63149de7f

Contents?: true

Size: 993 Bytes

Versions: 5

Compression:

Stored size: 993 Bytes

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
extjs-mvc-0.3.4 lib/extjs-mvc.rb
extjs-mvc-0.3.3 lib/extjs-mvc.rb
extjs-mvc-0.3.2 lib/extjs-mvc.rb
extjs-mvc-0.3.1 lib/extjs-mvc.rb
extjs-mvc-0.3.0 lib/extjs-mvc.rb