app/helpers/unirer/bootstrap/application_helper.rb in unirer-bootstrap-0.5 vs app/helpers/unirer/bootstrap/application_helper.rb in unirer-bootstrap-0.6

- old
+ new

@@ -1,9 +1,18 @@ module Unirer::Bootstrap::ApplicationHelper + + def library_enabled?(name, options) + defined?(options) && options.try(:[], name).present? + end + + def library_version(name, default_version, options) + defined?(options) ? options.try(:[], name).try(:[], :version)||default_version : default_version + end + end