aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorTeddy Wing2017-07-03 18:29:41 +0200
committerTeddy Wing2017-07-06 12:30:59 +0200
commit2d26c10de73fd6bfbf575dafee7b72e97844ff6b (patch)
tree518e9f21579e09520509bff04c3705a73d5af35b /app/assets/javascripts
parentae70f880cc1e74b242938734ba31498352a548f0 (diff)
downloadchouette-core-2d26c10de73fd6bfbf575dafee7b72e97844ff6b.tar.bz2
TableBuilderHelper::URL: Inject `current_referential` dependency
Turns out the only reason why this code worked before was because the only place I was using `table_builder_2` was for a list of `Referential`s, and there's an explicit check for `item.is_a?(Referential)` that avoids calling `current_referential`. Otherwise, when that `unless` condition passes, we get a failure because `current_referential` can't be found. It can't be found because helper methods are not accessible in this scope (duh). In order to make the referential accessible to the method, require one as an argument. Now we explicitly pass the `current_referential` from places where `#polymorphic_url_parts` is called. Refs #3479
Diffstat (limited to 'app/assets/javascripts')
0 files changed, 0 insertions, 0 deletions