Sha256: 4958455bb74c03103d5c459232429005be0d9dd7c9be18daf8735e74edd4bd30

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

require 'padrino-core'
require 'padrino-helpers'
require 'active_support/core_ext/array/conversions'

FileSet.glob_require('padrino-admin/*.rb', __FILE__)
FileSet.glob_require('padrino-admin/{helpers,utils}/*.rb', __FILE__)


##
# Load our Padrino::Admin locales
#
# I18n.load_path = Dir["#{File.dirname(__FILE__)}/padrino-admin/locale/*.yml"]

module Padrino
  ##
  # Padrino::Admin is beautiful Ajax Admin, with these fatures:
  #
  # Orm Agnostic:: Adapters for datamapper, activerecord, mongomapper, couchdb (now only: datamapper and activerecord), ohm
  # Authentication:: Support for Account authentication, Account Permission managment
  # 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; end
end

##
# We need to apply Padrino::Admin::Utils::Extensions
#
String.send(:include, Padrino::Admin::Utils::Crypt)

##
# Load our Padrino::Admin locales
#
I18n.load_path += Dir["#{File.dirname(__FILE__)}/padrino-admin/locale/**/*.yml"]

##
# 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
  # Fail silently
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
padrino-admin-0.11.3 lib/padrino-admin.rb
padrino-admin-0.11.2 lib/padrino-admin.rb
padrino-admin-0.11.1 lib/padrino-admin.rb
padrino-admin-0.11.0 lib/padrino-admin.rb