aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/lines_spec.rb
diff options
context:
space:
mode:
authorRobert2017-07-03 08:27:45 +0200
committerRobert2017-07-04 21:54:04 +0200
commit747d333ffbcc8ee0c9f1daf93ccca32799434e04 (patch)
treed475ba66bd6893bac155ddd781f009c74178c10d /spec/features/lines_spec.rb
parentebd292c7a6abaab5aeb90b37e34e21253184979f (diff)
downloadchouette-core-747d333ffbcc8ee0c9f1daf93ccca32799434e04.tar.bz2
Refs: #3478@2h Access correct referential in line_footnotes Ctrl
+ ApplicationController provides Pundit's UserContext's referential with `@referential` instead of `current_referential`, (`@referential` is computed from the URL, while `current_referential` was aliased to different methods, **not always** pointing to `Referential` instances) + ApplicationPolicy uses the record's referential in its `referential method` iff it is an instance of `Referential` else it uses the abovely provided referential, locally named `@current_referential` (as it should be named in the Ctrl too) This assures, in combination with the Ctrl Change, that `referential` **always** returns an instance of `Referential`! - TODO: Review my understanding of _Referential Setup_ inside the Ctrls
Diffstat (limited to 'spec/features/lines_spec.rb')
0 files changed, 0 insertions, 0 deletions