lib/alchemy/resources_helper.rb in alchemy_cms-7.0.7 vs lib/alchemy/resources_helper.rb in alchemy_cms-7.0.8

- old
+ new

@@ -12,15 +12,15 @@ def resource_window_size @resource_window_size ||= "420x#{100 + resource_handler.attributes.length * 40}" end def resource_instance_variable - instance_variable_get("@#{resource_handler.resource_name}") + instance_variable_get(:"@#{resource_handler.resource_name}") end def resources_instance_variable - instance_variable_get("@#{resource_handler.resources_name}") + instance_variable_get(:"@#{resource_handler.resources_name}") end def resource_url_proxy if resource_handler.in_engine? eval(resource_handler.engine_name) # rubocop:disable Security/Eval @@ -44,10 +44,10 @@ def new_resource_path(options = {}) new_polymorphic_path (resource_scope + [resource_handler.namespaced_resource_name]), options end def edit_resource_path(resource = nil, options = {}) - path_segments = (resource_scope + [resource] || resource_handler.resource_array) + path_segments = resource_scope + [resource] || resource_handler.resource_array edit_polymorphic_path path_segments, options end def resource_name resource_handler.resource_name