Skip to content

Commit d34898d

Browse files
author
Keith Walsh
committed
Restructured gem
1 parent 7b128b8 commit d34898d

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Or install it yourself as:
1616

1717
$ gem install chart-js-rails
1818

19+
In your application.js file, add
20+
$ //= require chart
21+
1922
## Usage
2023

2124
Visit: http://www.chartjs.org/docs/ for general Chart.js usage
File renamed without changes.

app/assets/javascripts/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//= require ./chart

lib/chart-js-rails.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
require "chart-js-rails/version"
2-
31
module Chart
4-
class Engine < Rails::Engine
5-
end
2+
require 'chart-js-rails/engine'
63
end

lib/chart-js-rails/engine.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Chart
2+
class Engine < Rails::Engine
3+
end

0 commit comments

Comments
 (0)