b0VIM 7.3h!P #kubakuba~kuba/railsy/customize_admin/lib/generators/customize_admin/install/install_generator.rb 3210#"! UtpUaddUv'  `  } | c A ; :   O / ) (  _  zHBA-"G8DC=<+end end template "customize_admin.rb", "config/initializers/customize_admin.rb" def add_config end :after => "class ApplicationController < ActionController::Base"end ", end 'application' else 'devise_admin' if devise_controller? && resource_name == :admin_userdef layout_by_resource "\n layout :layout_by_resource inject_into_file Dir["app/controllers/application_controller.rb"].first, template "devise_admin.html.erb", "app/views/layouts/devise_admin.html.erb" def add_devise_layout end template "index.html.erb", "app/views/#{@name_space}/dashboard/index.html.erb" template "dashboard_controller.rb", "app/controllers/#{@name_space}/dashboard_controller.rb" @name_space_class = s end s += n[0].capitalize + n.slice(1..-1) @name_space.to_s.split("_").each do |n| s = "" def add_dashboard end :before => "add_index :admin_users, :email" "# Create a default user\n AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')\n\n ", inject_into_file Dir["db/migrate/*_devise_create_admin_users.rb"].first, def admin_user_add_to_migration end gsub_file model_file, /\:registerable([.]*,)?/, "" model_file = File.join(destination_root, "app", "models", "admin_user.rb") def remove_registerable end generate "devise AdminUser" #@devise_name.blank? ? @devise_name = "AdminUser" : "" #@devise_name = ask("Tell me devise admin user model (default is AdminUser)") def create_admin_user_table end generate "devise:install" def run_devise_generator end generate "formtastic:install" def install_formtastic end generate "bootstrap:install" def run_bootstrap_generator end end "