Method: Alchemy::ResourcesHelper#resource_window_size

Defined in:
app/helpers/alchemy/resources_helper.rb

#resource_window_sizeObject

Alchemy::ResourceHelper

Used to DRY up resource like structures in Alchemy’s admin backend in combination with Alchemy::Resource

See Alchemy::Resource for examples how to initialize a resource_handler



14
15
16
# File 'app/helpers/alchemy/resources_helper.rb', line 14

def resource_window_size
  @resource_window_size ||= "480x#{100 + resource_handler.attributes.length * 40}"
end