lib/apartment.rb in apartment-0.13.1 vs lib/apartment.rb in apartment-0.14.0

- old
+ new

@@ -11,14 +11,10 @@ yield self if block_given? end # Be careful not to use `return` here so both Proc and lambda can be used without breaking def database_names - if @database_names.respond_to?(:call) - @database_names.call - else - @database_names - end + @database_names.respond_to?(:call) ? @database_names.call : @database_names end # Default to none def excluded_models @excluded_models || []