lib/configure_me/base.rb in configure_me-0.1.1 vs lib/configure_me/base.rb in configure_me-0.2.1
- old
+ new
@@ -12,13 +12,14 @@
include Settings
include Persistence
include Caching
include Nesting
include Singleton
+ extend ActiveModel::Naming
class << self
def config_name
- self.name.gsub(/^(.*)Config$/, '\1').downcase
+ self.name.split('::').last.gsub(/^(.*)Config$/, '\1').downcase
end
end
def parent
@parent || nil