Sha256: f39cd10f999e7a034fadbfe0dc43464318615c93ba39a5a934540adcb46580f2

Contents?: true

Size: 478 Bytes

Versions: 11

Compression:

Stored size: 478 Bytes

Contents

# This illustrates the use of a ziya helper. Define view behavior in these
# classes. The location of the helpers is specified in the ziya initializer
# :helpers_dir configuration
module Ziya::MapHelper  
  # ---------------------------------------------------------------------------
  # Define custom outline color for use in the stylesheet
  def outline_color
    "f49329"
  end
  
  def random_color
    colors = %w[f49329 eced76 cc0000 0f67a1]
    colors[rand(3)]
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
derailed-ziya-2.1.0 examples/maps/helpers/map_helper.rb
derailed-ziya-2.1.1 examples/maps/helpers/map_helper.rb
derailed-ziya-2.1.2 examples/maps/helpers/map_helper.rb
derailed-ziya-2.1.3 examples/maps/helpers/map_helper.rb
derailed-ziya-2.1.4 examples/maps/helpers/map_helper.rb
derailed-ziya-2.1.5 examples/maps/helpers/map_helper.rb
ziya-2.3.0 examples/maps/helpers/map_helper.rb
ziya-2.1.9 examples/maps/helpers/map_helper.rb
ziya-2.1.8 examples/maps/helpers/map_helper.rb
ziya-2.1.7 examples/maps/helpers/map_helper.rb
ziya-2.1.6 examples/maps/helpers/map_helper.rb