Sha256: 3f279cf76438c8fe4f0c328146caf01c06669b92a857563727e0c7f5b2b3192d

Contents?: true

Size: 592 Bytes

Versions: 7

Compression:

Stored size: 592 Bytes

Contents

require 'orange-more/administration/base'

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::SiteLoad
    router   Orange::Middleware::AccessControl
    
  end
end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
orange-more-0.7.3 lib/orange-more/administration/plugin.rb
orange-more-0.7.2 lib/orange-more/administration/plugin.rb
orange-more-0.7.1 lib/orange-more/administration/plugin.rb
orange-more-0.6.5 lib/orange-more/administration/plugin.rb
orange-more-0.6.4 lib/orange-more/administration/plugin.rb
orange-more-0.6.3 lib/orange-more/administration/plugin.rb
orange-more-0.6.2 lib/orange-more/administration/plugin.rb