Module: Card::Set::Rule::HtmlViews::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod036-card-mod-rules/rule/html_views.rb,
card/tmpsets/set/mod037-card-mod-rules/rule/html_views.rb

Instance Method Summary collapse

Instance Method Details

#view: coreObject



9
10
11
12
13
14
15
16
17
18
19
# File 'card/tmpsets/set/mod036-card-mod-rules/rule/html_views.rb', line 9

view :core do
  # Rule cards that are searches are usual right structures and refer to the left
  # in the search query. In that case the search doesn't work
  # properly in the context of the rule card itself.  Hence we show the query syntax
  # and not the search result.
  if card.type_id == SearchTypeID
    render_raw
  else
    super()
  end
end