We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6c4d9 commit 240f911Copy full SHA for 240f911
1 file changed
lib/tdiary-contrib.rb
@@ -1,19 +1,20 @@
1
+require 'tdiary'
2
+require 'tdiary/application'
3
+
4
module TDiary
5
class Contrib
6
def self.root
7
File.expand_path('../..', __FILE__)
8
end
9
- class Assets
- def self.setup(environment)
- environment.append_path File.join(TDiary::Contrib.root, 'js')
10
- end
11
12
-
13
class Plugin
14
def self.setup(sp_path)
15
sp_path << File.join(TDiary::Contrib.root, 'plugin')
16
17
18
+ Application.configure do
+ config.assets_paths << File.join(TDiary::Contrib.root, 'js')
19
+ end
20
0 commit comments