Sha256: 6b6d64b9ed8be85d69aaeaa0b32def5c506751f3ddef81d65dc4d65a2f1481b8

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 Bytes

Contents

// This is a very handy place to put any initial logic
// For example, choosing your adapter
<% if rack_app? %>
o_O.model.adapter = o_O.rest;
o_O.config.authenticity_token = $('meta[name=csrf-token]').attr('content')
o_O.config.template_path = '/javascripts/app/views';

jQuery.ajaxSetup({ 
  'beforeSend': function(xhr) {xhr.setRequestHeader("Accept",
    "text/javascript")} 
})
<% else %>
o_O.model.adapter = o_O.localstorage;
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
eyeballs-0.5.12.1 templates/initializer.js
eyeballs-0.5.12 templates/initializer.js
eyeballs-0.5.11 templates/initializer.js
eyeballs-0.5.10.1 templates/initializer.js
eyeballs-0.5.10 templates/initializer.js
eyeballs-0.5.9 templates/initializer.js
eyeballs-0.5.8.2 templates/initializer.js
eyeballs-0.5.8.1 templates/initializer.js
eyeballs-0.5.8 templates/initializer.js