lib/joosy.rb in joosy-1.0.0.RC7 vs lib/joosy.rb in joosy-1.1.0.alpha.1

- old
+ new

@@ -1,16 +1,17 @@ require 'haml_coffee_assets' -require 'jquery-rails' -require 'coffee-rails' +require 'joosy/version' -require 'joosy/rails/engine' -require 'joosy/rails/version' -require 'rails/resources_with_joosy' +if defined?(Rails) + require 'joosy/rails/engine' + require 'rails/resources_with_joosy' +end -require 'i18n-js' - - module Joosy - def self.resources(namespaces=nil) - Joosy::SprocketsHelper.joosy_resources(namespaces).to_json + def self.assets_paths + [ + File.expand_path('../../app/assets/javascripts', __FILE__), + File.expand_path('../../vendor/assets/javascripts', __FILE__), + File.dirname(HamlCoffeeAssets.helpers_path) + ] end end \ No newline at end of file