forked from fixin.me/fixin.me
Improve controllers and views
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
module CoreExt::ActionView::RecordIdentifierWithSuffix
|
||||
# TODO: replace dom_id with dom_target, then remove this override
|
||||
def dom_id(object, prefix = nil, suffix = nil)
|
||||
if suffix
|
||||
"#{super(object, prefix)}#{::ActionView::RecordIdentifier::JOIN}#{suffix}"
|
||||
|
||||
Reference in New Issue
Block a user