2012-12-17 03:38:52 -05:00
|
|
|
module Paloma
|
2012-12-21 14:51:44 -05:00
|
|
|
mattr_accessor :destination, :templates
|
2013-08-27 02:28:59 -04:00
|
|
|
|
2012-12-17 03:38:52 -05:00
|
|
|
def self.root
|
2012-12-21 14:51:44 -05:00
|
|
|
@paloma_root ||= "#{File.dirname(__FILE__)}/../"
|
|
|
|
end
|
2013-08-27 02:28:59 -04:00
|
|
|
|
|
|
|
|
2012-12-21 14:51:44 -05:00
|
|
|
def self.index_js
|
|
|
|
@index_js ||= "#{Paloma.destination}/index.js"
|
|
|
|
end
|
2013-08-27 02:28:59 -04:00
|
|
|
|
|
|
|
|
2012-12-21 14:51:44 -05:00
|
|
|
def self.destination
|
|
|
|
@destination ||= 'app/assets/javascripts/paloma'
|
|
|
|
end
|
2013-08-27 02:28:59 -04:00
|
|
|
|
|
|
|
|
2012-12-21 14:51:44 -05:00
|
|
|
def self.templates
|
|
|
|
@templates ||= "#{Paloma.root}/app/templates"
|
2012-12-17 03:38:52 -05:00
|
|
|
end
|
2013-08-27 02:28:59 -04:00
|
|
|
|
2012-12-17 03:38:52 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
# TODO: Rails version checking
|
|
|
|
|
2013-10-11 21:20:25 -04:00
|
|
|
require 'action_controller/railtie'
|
|
|
|
|
2012-12-17 05:50:23 -05:00
|
|
|
require 'paloma/action_controller_extension'
|
2013-02-17 12:03:41 -05:00
|
|
|
require 'paloma/rails/engine'
|