diff options
author | Philip Arndt <parndt@gmail.com> | 2011-04-25 13:43:14 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-04-25 13:43:14 +1200 |
commit | 1f72e3d90a1e8678de4a4b658b6675d2597d857c (patch) | |
tree | 8eeca6b19459d6adbedb40503ff2fed8c5468d91 /lib/refinerycms-blog.rb | |
parent | 5e69fdac1778ffb9f6a188e9b5cc2e56bd2febf8 (diff) | |
download | refinerycms-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.rb | 13 |
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 |