app/helpers/requirejs_helper.rb in requirejs-rails-0.8.2 vs app/helpers/requirejs_helper.rb in requirejs-rails-0.9.0

- old
+ new

@@ -9,25 +9,16 @@ def _requirejs_data(name, &block) {}.tap do |data| if name name += ".js" unless name =~ /\.js$/ - data['main'] = _javascript_path(name) + data['main'] = _javascript_path(name).sub(/\.js$/,'') end data.merge!(yield controller) if block_given? end.map do |k, v| %Q{data-#{k}="#{v}"} end.join(" ") - end - - def _data_main(name) - if name - name += ".js" unless name =~ /\.js$/ - %Q{data-main="#{_javascript_path(name)}"} - else - "" - end end def requirejs_include_tag(name=nil, &block) requirejs = Rails.application.config.requirejs