lib/odania/config/page_base.rb in odania-0.0.33 vs lib/odania/config/page_base.rb in odania-0.0.34
- old
+ new
@@ -35,10 +35,11 @@
@plugins = {:partials => Hash.new { |hash, key| hash[key] = [] }, :assets => Hash.new { |hash, key| hash[key] = [] }}
end
def [](type)
- return self.assets if 'assets'.eql? type.to_s
+ type = type.to_sym
+ return self.assets if :assets.eql? type
self.partials
end
def dump
asset_data = {}