Rails 3.1 - wip.
This commit is contained in:
parent
e5db679226
commit
3fa8937b95
51 changed files with 1064 additions and 1036 deletions
|
@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|||
s.require_paths = %w(lib)
|
||||
|
||||
# Runtime dependencies
|
||||
s.add_dependency 'refinerycms-core', '~> 1.0.3'
|
||||
s.add_dependency 'refinerycms-core', '~> 1.1.0'
|
||||
s.add_dependency 'filters_spam', '~> 0.2'
|
||||
s.add_dependency 'acts-as-taggable-on'
|
||||
s.add_dependency 'seo_meta', '~> 1.1.0'
|
||||
|
|
10
lib/generators/blog_generator.rb
Normal file
10
lib/generators/blog_generator.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
require 'refinery/generators'
|
||||
|
||||
module ::Refinery
|
||||
class BlogGenerator < ::Refinery::Generators::EngineInstaller
|
||||
|
||||
source_root File.expand_path('../../../', __FILE__)
|
||||
engine_name "refinerycms-blog"
|
||||
|
||||
end
|
||||
end
|
|
@ -1,8 +0,0 @@
|
|||
require 'refinery/generators'
|
||||
|
||||
class RefinerycmsBlogGenerator < ::Refinery::Generators::EngineInstaller
|
||||
|
||||
source_root File.expand_path('../../../', __FILE__)
|
||||
engine_name "refinerycms-blog"
|
||||
|
||||
end
|
|
@ -1,9 +1,9 @@
|
|||
module Refinery
|
||||
module Blog
|
||||
class Version
|
||||
@major = 1
|
||||
@minor = 6
|
||||
@tiny = 2
|
||||
@major = 2
|
||||
@minor = 0
|
||||
@tiny = 0
|
||||
|
||||
class << self
|
||||
attr_reader :major, :minor, :tiny
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
require 'filters_spam'
|
||||
require File.expand_path('../generators/blog_generator', __FILE__)
|
||||
|
||||
module Refinery
|
||||
module Blog
|
||||
|
@ -25,14 +26,14 @@ module Refinery
|
|||
require File.expand_path('../refinery/blog/tabs', __FILE__)
|
||||
end
|
||||
|
||||
config.after_initialize do
|
||||
initializer "init plugin", :after => :set_routes_reloader do |app|
|
||||
Refinery::Plugin.register do |plugin|
|
||||
plugin.pathname = root
|
||||
plugin.name = "refinerycms_blog"
|
||||
plugin.url = {:controller => '/admin/blog/posts', :action => 'index'}
|
||||
plugin.menu_match = /^\/?(admin|refinery)\/blog\/?(posts|comments|categories)?/
|
||||
plugin.url = app.routes.url_helpers.refinery_admin_blog_posts_path
|
||||
plugin.menu_match = /^\/refinery\/blog\/?(posts|comments|categories)?/
|
||||
plugin.activity = {
|
||||
:class => BlogPost
|
||||
:class => Refinery::BlogPost
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue