Skip to content

Commit

Permalink
revert to ember-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
tchak committed Apr 9, 2012
1 parent 79eec3b commit be153e9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -10,7 +10,7 @@ You can see an example of how to use the gem [here](https://github.com/keithpitt

Add the gem to your application Gemfile:

gem "ember_rails"
gem "ember-rails"

Run `bundle install` and add the following line to `app/assets/javascripts/application.js`:

Expand Down
21 changes: 20 additions & 1 deletion lib/ember-rails.rb
@@ -1 +1,20 @@
require 'ember_rails'
require 'sprockets'
require 'sprockets/engines'

require "ember_rails/handlebars/source"
require "ember_rails/handlebars/template"

module EmberRails
class Engine < ::Rails::Engine
config.handlebars = ActiveSupport::OrderedOptions.new
config.handlebars.precompile = Rails.env.production?
config.handlebars.template_root = 'templates'
config.handlebars.template_path_separator = '/'

initializer :setup_ember_rails, :group => :all do |app|
app.assets.register_engine '.handlebars', EmberRails::Handlebars::Template
app.assets.register_engine '.hbs', EmberRails::Handlebars::Template
app.assets.register_engine '.hjs', EmberRails::Handlebars::Template
end
end
end
2 changes: 1 addition & 1 deletion test/dummy/config/application.rb
Expand Up @@ -5,7 +5,7 @@
require 'sprockets/railtie'

Bundler.require
require "ember_rails"
require "ember-rails"

module Dummy
class Application < Rails::Application
Expand Down

0 comments on commit be153e9

Please sign in to comment.