Skip to content

Commit

Permalink
Manually require jquery-rails and bootstrap-sass
Browse files Browse the repository at this point in the history
fixes fredwu#4
  • Loading branch information
fredwu committed Jun 22, 2012
1 parent 4d0799f commit 449eeb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 0 additions & 17 deletions README.md
Expand Up @@ -83,23 +83,6 @@ APIs evolve - especially during the development stage. To keep `ApiTaster.routes

![](http://i.imgur.com/qK7g5.png)

### Use with an Engine

Rails Engines are largely self contained and separated from your main app. Therefore, to use API Taster with an Engine, you would need some extra efforts:

In your app Gemfile, you would also need:

```ruby
gem "jquery-rails"
gem "bootstrap-sass"
```

If you are hand-picking Rails components, make sure in your `application.rb` you have Sprockets enabled:

```ruby
require "sprockets/railtie"
```

## License

This gem is released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
Expand Down
2 changes: 2 additions & 0 deletions lib/api_taster.rb
@@ -1,3 +1,5 @@
require 'jquery-rails'
require 'bootstrap-sass'
require 'active_support/dependencies'
require 'api_taster/engine'
require 'api_taster/route'
Expand Down

0 comments on commit 449eeb6

Please sign in to comment.