From 1f72e3d90a1e8678de4a4b658b6675d2597d857c Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 25 Apr 2011 13:43:14 +1200 Subject: Made version code more accessible and fixed up lib/gemspec.rb --- lib/refinerycms-blog.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/refinerycms-blog.rb') diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb index 60c9bfa..312ee9b 100644 --- a/lib/refinerycms-blog.rb +++ b/lib/refinerycms-blog.rb @@ -3,6 +3,13 @@ require 'filters_spam' module Refinery module Blog + autoload :Version, File.expand_path('../refinery/blog/version', __FILE__) + class << self + def version + ::Refinery::Blog::Version.to_s + end + end + class Engine < Rails::Engine initializer 'blog serves assets' do |app| app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public" @@ -35,11 +42,5 @@ module Refinery end end end if defined?(Rails::Engine) - - class << self - def version - %q{1.4} - end - end end end -- cgit v1.2.3