af83/chouette-core

View on GitHub
app/decorators/referential_network_decorator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ReferentialNetworkDecorator < AF83::Decorator
  decorates Chouette::Network

  set_scope { context[:referential] }

  # Action links require:
  #   context: {
  #     referential: ,
  #   }

  create_action_link

  with_instance_decorator do |instance_decorator|
    instance_decorator.crud
  end
end