Made version code more accessible and fixed up lib/gemspec.rb
This commit is contained in:
parent
5e69fdac17
commit
1f72e3d90a
4 changed files with 42 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue