Sha256: 578bad4184b724f6189c54d105dcc9cc40b043c02125ce7e1151b1302c3aad20

Contents?: true

Size: 337 Bytes

Versions: 9

Compression:

Stored size: 337 Bytes

Contents

window.Utility || (window.Utility = {});
Utility.RailsVars = #{@to_javascript.nil? ? '{}' : @to_javascript.to_json};

function() {
  window.$this = new (App.#{ controller_path.split(/\/|_/).map(&:capitalize).join('') } || App.Base)();
  if (typeof $this.#{ action_name } === 'function') {
    return $this.#{ action_name }.call();
  }
};

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_script-0.7.0 include_rails_script.js.coffee
rails_script-0.6.1 include_rails_script.js.coffee
rails_script-0.6.0 include_rails_script.js.coffee
rails_script-0.5.0 include_rails_script.js.coffee
rails_script-0.4.1 include_rails_script.js.coffee
rails_script-0.4.0 include_rails_script.js.coffee
rails_script-0.3.2 include_rails_script.js.coffee
rails_script-0.3.1 include_rails_script.js.coffee
rails_script-0.3.0 include_rails_script.js.coffee