Sha256: fcf87e43dcdc606e960406ebef7ae008953aa6996c0dd973efe4fa522d009f7c

Contents?: true

Size: 813 Bytes

Versions: 5

Compression:

Stored size: 813 Bytes

Contents

Dir.glob(File.join(File.dirname(__FILE__), 'cartons', '*.rb')).each {|f| require f }
Dir.glob(File.join(File.dirname(__FILE__), 'resources', '*.rb')).each {|f| require f }
Dir.glob(File.join(File.dirname(__FILE__), 'middleware', '*.rb')).each {|f| require f }

module Orange::Plugins
  class Administration < Base
    assets_dir      File.join(File.dirname(__FILE__), 'assets')
    views_dir       File.join(File.dirname(__FILE__), 'views')
    templates_dir   File.join(File.dirname(__FILE__), 'templates')
    
    resource    Orange::AdminResource.new, :admin
    resource    Orange::UserResource.new
    resource    Orange::SiteResource.new
    
    prerouter   Orange::Middleware::AccessControl
    prerouter   Orange::Middleware::SiteLoad
    
  end
end

Orange.plugin(Orange::Plugins::Administration.new)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
orange-0.1.4 lib/orange-more/administration/plugin.rb
orange-0.1.2 lib/orange-more/administration/plugin.rb
orange-0.1.0 lib/orange-more/administration/plugin.rb
orange-0.0.15 lib/orange-more/administration/plugin.rb
orange-0.0.14 lib/orange-more/administration/plugin.rb