ajaxify_rails 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AjaxifyRails
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -3,6 +3,7 @@ active = true
3
3
  content_container = 'main'
4
4
  base_paths = null
5
5
  flash_types = ['notice']
6
+ dont_correct_url = false
6
7
 
7
8
  ignore_hash_change = null
8
9
  load_page_from_hash = null
@@ -255,7 +256,7 @@ init = (options = {}) ->
255
256
  flash_types = options.flash_types if 'flash_types' of options
256
257
  active = options.active if 'active' of options
257
258
  content_container = options.content_container if 'content_container' of options
258
- correct_url()
259
+ correct_url() unless 'dont_correct_url' of options and options.dont_correct_url
259
260
 
260
261
  #
261
262
  # utility functions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajaxify_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-23 00:00:00.000000000 Z
12
+ date: 2013-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails