aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinerycms-blog.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-04-25 13:43:14 +1200
committerPhilip Arndt <parndt@gmail.com>2011-04-25 13:43:14 +1200
commit1f72e3d90a1e8678de4a4b658b6675d2597d857c (patch)
tree8eeca6b19459d6adbedb40503ff2fed8c5468d91 /lib/refinerycms-blog.rb
parent5e69fdac1778ffb9f6a188e9b5cc2e56bd2febf8 (diff)
downloadrefinerycms-blog-1f72e3d90a1e8678de4a4b658b6675d2597d857c.tar.gz
refinerycms-blog-1f72e3d90a1e8678de4a4b658b6675d2597d857c.tar.bz2
refinerycms-blog-1f72e3d90a1e8678de4a4b658b6675d2597d857c.zip
Made version code more accessible and fixed up lib/gemspec.rb
Diffstat (limited to 'lib/refinerycms-blog.rb')
-rw-r--r--lib/refinerycms-blog.rb13
1 files changed, 7 insertions, 6 deletions
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