Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (26 sloc) 0.737 kb
module Apotomo
class << self
def js_framework=(js_framework)
@js_framework = js_framework
@js_generator = JavascriptGenerator.new(js_framework)
end
attr_reader :js_generator, :js_framework
# Apotomo setup/configuration helper for initializer.
#
# == Usage/Examples:
#
# Apotomo.setup do |config|
# config.js_framework = :jquery
# end
def setup
yield self
end
end
end
require 'apotomo/widget'
require 'apotomo/railtie'
require 'apotomo/widget_shortcuts'
require 'apotomo/rails/controller_methods'
require 'apotomo/javascript_generator'
require 'apotomo/test_case' if Rails.env == "test"
Apotomo.js_framework = :jquery ### DISCUSS: move to rails.rb
Jump to Line
Something went wrong with that request. Please try again.