app/models/prosperity/graph.rb in prosperity-0.0.10 vs app/models/prosperity/graph.rb in prosperity-0.0.11

- old
+ new

@@ -6,10 +6,10 @@ ATTR_ACCESSIBLE = [:title, :period, :graph_lines, :graph_type].freeze attr_accessible *ATTR_ACCESSIBLE unless defined?(ActionController::StrongParameters) - VALID_GRAPH_TYPES = %w(line area) + VALID_GRAPH_TYPES = %w(line area ratio) validates :graph_type, inclusion: {in: VALID_GRAPH_TYPES} private def not_filled?(line) if line[:id]