lib/gooddata/models/blueprint/dataset_blueprint.rb in gooddata-0.6.27 vs lib/gooddata/models/blueprint/dataset_blueprint.rb in gooddata-0.6.28
- old
+ new
@@ -370,10 +370,11 @@
def suggest_metrics
identifiers = facts.map { |f| identifier_for(f) }
identifiers.zip(facts).map do |id, fact|
Metric.xcreate(
:title => GoodData::Helpers.titleize(fact[:name]),
- :expression => "SELECT SUM(![#{id}])")
+ :expression => "SELECT SUM(![#{id}])"
+ )
end
end
alias_method :suggest_measures, :suggest_metrics