lib/padrino-admin.rb in padrino-admin-0.2.9 vs lib/padrino-admin.rb in padrino-admin-0.4.5

- old
+ new

@@ -1,2 +1,11 @@ -require 'padrino-gen' -Dir[File.dirname(__FILE__) + '/padrino-admin/**/*.rb'].each {|file| require file } +require 'padrino-core' + +Dir[File.dirname(__FILE__) + '/padrino-admin/*.rb'].each {|file| require file } +Dir[File.dirname(__FILE__) + '/padrino-admin/{access_control,adapters,ext_js,generators,utils}/*.rb'].each {|file| require file } + +Padrino::Application.send(:cattr_accessor, :access_control) +Padrino::Application.send(:access_control=, Class.new(Padrino::AccessControl::Base)) +String.send(:include, Padrino::Admin::Utils::Crypt) + +# Load our locales +I18n.load_path += Dir["#{File.dirname(__FILE__)}/padrino-admin/locale/*.yml"] \ No newline at end of file