You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check permission for button. Exactly how you defined the permission in your +authorization_rules.rb+. Defaults to controller and action from button url.
Copy file name to clipboardExpand all lines: app/helpers/alchemy/elements_block_helper.rb
-14Lines changed: 0 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -100,22 +100,8 @@ def ingredient_by_role(role)
100
100
# A lambda used for formatting the element's tags (see Alchemy::ElementsHelper::element_tags_attributes). Set to +false+ to not include tags in the wrapper element.
101
101
#
102
102
defelement_view_for(element,options={})
103
-
ifoptions[:id].nil?
104
-
Alchemy::Deprecation.warn<<~WARN
105
-
Relying on an implicit DOM id in `element_view_for` is deprecated. Please provide an explicit `id` if you actually want to render an `id` attribute on the #{element.name} element wrapper tag.
106
-
WARN
107
-
end
108
-
109
-
ifoptions[:class].nil?
110
-
Alchemy::Deprecation.warn<<~WARN
111
-
Relying on an implicit CSS class in `element_view_for` is deprecated. Please provide an explicit `class` for the #{element.name} element wrapper tag.
# The class responsible for the +dom_id+ of elements.
138
-
# Defaults to +Alchemy::Element::DomId+.
139
-
# @deprecated
140
-
defdom_id_class
141
-
ifcaller.none?{ |l| l =~ Regexp.new("alchemy/element/presenters.rb:87:in `dom_id'")}
142
-
Alchemy::Deprecation.warn("dom_id_class is deprecated and will be removed from Alchemy 8.0. Please pass an id to the element_view_for helper instead.")
143
-
end
144
-
@_dom_id_class || DomId
145
-
end
146
-
147
-
# Register a custom +DomId+ class responsible for the +dom_id+ of elements.
0 commit comments