mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
30 lines
524 B
Ruby
30 lines
524 B
Ruby
module Paloma
|
|
mattr_accessor :destination, :templates
|
|
|
|
def self.root
|
|
@paloma_root ||= "#{File.dirname(__FILE__)}/../"
|
|
end
|
|
|
|
|
|
def self.index_js
|
|
@index_js ||= "#{Paloma.destination}/index.js"
|
|
end
|
|
|
|
|
|
def self.destination
|
|
@destination ||= 'app/assets/javascripts/paloma'
|
|
end
|
|
|
|
|
|
def self.templates
|
|
@templates ||= "#{Paloma.root}/app/templates"
|
|
end
|
|
|
|
end
|
|
|
|
# TODO: Rails version checking
|
|
|
|
require 'action_controller/railtie'
|
|
|
|
require 'paloma/action_controller_extension'
|
|
require 'paloma/rails/engine'
|