Sha256: 595beddb87ddb2f17a9354c7e9729dbefd7d4e8893e4ab73dceabb1e149407b9

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

require "method_draw/engine"
require "method_draw/method_draw"
require "method_draw/method_draw_tag"

module MethodDraw
  ASSET_FILES = %w(method_draw.css method_draw.js method_draw_embed.js method-draw-js/canvg/canvg.js method-draw-js/canvg/rgbcolor.js method-draw-js/extensions/ext-*.js)

  METHOD_DRAW_OPTIONS = [:width, :height, :bkgd_color, :bkgd_url, :canvas_width, :canvas_height, :canvas_expansion, :hide_rulers, :hide_menu, :hide_image_tool, :show_layers, :url, :extensions]
  TAG_OPTIONS = [:id, :value, :index]
  OPTIONS = METHOD_DRAW_OPTIONS + TAG_OPTIONS

  ActiveSupport.on_load(:before_initialize) do
    Rails.configuration.assets.precompile += ASSET_FILES
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
method_draw-0.0.1 lib/method_draw.rb