lib/boson/view.rb in boson-0.2.2 vs lib/boson/view.rb in boson-0.2.3
- old
+ new
@@ -49,10 +49,13 @@
module View
extend self
# Enables hirb and reads a config file from the main repo's config/hirb.yml.
def enable
- Hirb::View.enable(:config_file=>File.join(Boson.repo.config_dir, 'hirb.yml')) unless @enabled
+ unless @enabled
+ Hirb::View.enable(:config_file=>File.join(Boson.repo.config_dir, 'hirb.yml'))
+ Hirb::Helpers::Table.filter_any = true
+ end
@enabled = true
end
# Renders any object via Hirb. Options are passed directly to
# {Hirb::Console.render_output}[http://tagaholic.me/hirb/doc/classes/Hirb/Console.html#M000011].