Class: Overule::RuleVersionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/overule/rule_versions_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/overule/rule_versions_controller.rb', line 6

def index
  @versions = @rule.versions.ordered.reverse_order
end

#showObject



10
11
12
# File 'app/controllers/overule/rule_versions_controller.rb', line 10

def show
  # Rendered implicitly: the show view consumes @rule and @version loaded by the before_actions.
end