Skip to content

Commit 240f911

Browse files
committed
changing tDiary initialization process
1 parent 7a6c4d9 commit 240f911

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

lib/tdiary-contrib.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
require 'tdiary'
2+
require 'tdiary/application'
3+
14
module TDiary
25
class Contrib
36
def self.root
47
File.expand_path('../..', __FILE__)
58
end
69

7-
class Assets
8-
def self.setup(environment)
9-
environment.append_path File.join(TDiary::Contrib.root, 'js')
10-
end
11-
end
12-
1310
class Plugin
1411
def self.setup(sp_path)
1512
sp_path << File.join(TDiary::Contrib.root, 'plugin')
1613
end
1714
end
1815
end
16+
17+
Application.configure do
18+
config.assets_paths << File.join(TDiary::Contrib.root, 'js')
19+
end
1920
end

0 commit comments

Comments
 (0)