commit
0076d0a9fa
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,10 @@ module Refinery
|
||||||
autoload :Tab, File.expand_path("../refinery/blog/tabs", __FILE__)
|
autoload :Tab, File.expand_path("../refinery/blog/tabs", __FILE__)
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
attr_accessor :root
|
||||||
|
def root
|
||||||
|
@root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
||||||
|
end
|
||||||
def version
|
def version
|
||||||
::Refinery::Blog::Version.to_s
|
::Refinery::Blog::Version.to_s
|
||||||
end
|
end
|
||||||
|
@ -22,6 +26,7 @@ module Refinery
|
||||||
|
|
||||||
config.after_initialize do
|
config.after_initialize do
|
||||||
Refinery::Plugin.register do |plugin|
|
Refinery::Plugin.register do |plugin|
|
||||||
|
plugin.pathname = root
|
||||||
plugin.name = "refinerycms_blog"
|
plugin.name = "refinerycms_blog"
|
||||||
plugin.url = {:controller => '/admin/blog/posts', :action => 'index'}
|
plugin.url = {:controller => '/admin/blog/posts', :action => 'index'}
|
||||||
plugin.menu_match = /^\/?(admin|refinery)\/blog\/?(posts|comments|categories)?/
|
plugin.menu_match = /^\/?(admin|refinery)\/blog\/?(posts|comments|categories)?/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue