expose properties after_all
This commit is contained in:
parent
5bee34cc34
commit
c80a820054
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
class TypesDeChampEditor::ChampComponent < ApplicationComponent
|
class TypesDeChampEditor::ChampComponent < ApplicationComponent
|
||||||
|
attr_reader :coordinate, :upper_coordinates
|
||||||
|
|
||||||
def initialize(coordinate:, upper_coordinates:, focused: false)
|
def initialize(coordinate:, upper_coordinates:, focused: false)
|
||||||
@coordinate = coordinate
|
@coordinate = coordinate
|
||||||
@focused = focused
|
@focused = focused
|
||||||
|
@ -7,7 +9,6 @@ class TypesDeChampEditor::ChampComponent < ApplicationComponent
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
attr_reader :coordinate
|
|
||||||
delegate :type_de_champ, :revision, :procedure, to: :coordinate
|
delegate :type_de_champ, :revision, :procedure, to: :coordinate
|
||||||
|
|
||||||
def can_be_mandatory?
|
def can_be_mandatory?
|
||||||
|
|
Loading…
Add table
Reference in a new issue