lib/dao/rails/lib/generators/dao/dao_generator.rb in dao-2.0.0 vs lib/dao/rails/lib/generators/dao/dao_generator.rb in dao-2.1.0

- old
+ new

@@ -4,10 +4,16 @@ def copy_api_file copy_file("api.rb", "app/api.rb") copy_file("api_controller.rb", "app/controllers/api_controller.rb") + copy_file("dao_helper.rb", "app/helpers/dao_helper.rb") + + copy_file("dao.js", "public/javascripts/dao.js") + + copy_file("dao.css", "public/stylesheets/dao.css") + route("match 'api/*path' => 'api#call', :as => 'api'") route("match 'api' => 'api#index', :as => 'api_index'") gem("yajl-ruby") @@ -18,9 +24,15 @@ require 'app/api.rb' require 'yajl/json_gem' end config.autoload_paths += %w( app ) + + ### config.action_view.javascript_expansions[:defaults] ||= [] + ### config.action_view.javascript_expansions[:defaults] += %( dao ) + + ### config.action_view.stylesheet_expansions[:defaults] ||= [] + ### config.action_view.stylesheet_expansions[:defaults] += %( dao ) __ ) end end