Sha256: 053784af06daab4ba98ca1c3e39117d74a4f0a42b2661202775564435f7cd2df
Contents?: true
Size: 1.15 KB
Versions: 21
Compression:
Stored size: 1.15 KB
Contents
require 'padrino-core' require 'padrino-helpers' FileSet.glob_require('padrino-admin/*.rb', __FILE__) FileSet.glob_require('padrino-admin/{helpers,utils}/*.rb', __FILE__) module Padrino ## # Padrino::Admin is beautiful Ajax Admin, with these features: # # Orm Agnostic:: Adapters for datamapper, activerecord, mongomapper, couchdb (now only: datamapper and activerecord), ohm # Authentication:: Support for Account authentication, Account Permission management # Scaffold:: You can simply create a new "admin interface" simply providing a Model # Ajax Uploads:: You can upload file, manage them and attach them to any model in a quick and simple way (coming soon) # module Admin class << self def registered(app) # Load Padrino::Admin locales I18n.load_path += Dir["#{File.dirname(__FILE__)}/padrino-admin/locale/**/*.yml"] end alias :included :registered end end end ## # Now we need to add admin generators to padrino-gen # begin require 'padrino-gen' Padrino::Generators.load_paths << Dir[File.dirname(__FILE__) + '/padrino-admin/generators/{actions,orm,admin_app,admin_page}.rb'] rescue LoadError end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
padrino-admin-0.13.3.1 | lib/padrino-admin.rb |