wagn 1.16.2 → 1.16.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec97a5af91ccb5f9349031a4435c97aa14abdb77
4
- data.tar.gz: 8e31f2ad73047d4e3d2d3f4f954aa5584c3e0922
3
+ metadata.gz: a7e2d9d01c35b78795669c2b84b2d55b0ad7fb0b
4
+ data.tar.gz: 4861c0153a993c85dcf1ae6764ec97ba20348fbf
5
5
  SHA512:
6
- metadata.gz: 7b3f2734bbf8c10be7b3f0ecb54262dcf4a871a6e312bd261a4cd1b618e897ce634d3a3fc17df4e2fdbedcec0e64f6f6e137add16341173f18e77c5a9609361b
7
- data.tar.gz: b3376aac12150272e1cc8758b94e5e0ea3eef88bd74e5a60ab837ec3cb4271ef2964f58226d0e8a2c9672c41460ad6175a4fe2a288dd448d6e1bce8615286a83
6
+ metadata.gz: 97e0b8eb2f9bbb194163c2632ae57915703b1c849eb4956f605bda17be48ed392ce15653484eecf591b3d0514ad12a9ec9e0e496edded2961eaeb03fea7e0114
7
+ data.tar.gz: 6a863fb25d8df6e19f10033148f9c9d41274100691b0857671a27ad9ea5b3980f5aec370ce2bc1dc9a313c69927bce09b3eee947cf7e223ee781aa8d4c92aadc
@@ -20,16 +20,12 @@ class CardController < ActionController::Base
20
20
  before_filter :load_card, :except => [:asset]
21
21
  before_filter :refresh_card, :only=> [ :create, :update, :delete, :rollback ]
22
22
 
23
-
24
-
25
23
  layout nil
26
24
 
27
25
  attr_reader :card
28
26
 
29
27
 
30
28
 
31
-
32
-
33
29
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34
30
  # CORE METHODS
35
31
 
@@ -192,10 +188,14 @@ class CardController < ActionController::Base
192
188
  end
193
189
 
194
190
 
191
+
192
+ # success param:
193
+ # if nothing card is self
195
194
  def success
196
195
  redirect, new_params = !ajax?, {}
197
196
 
198
197
  target = case params[:success]
198
+ when nil ; '_self'
199
199
  when Hash
200
200
  new_params = params[:success]
201
201
  redirect ||= !!(new_params.delete :redirect)
@@ -203,7 +203,6 @@ class CardController < ActionController::Base
203
203
  when /^REDIRECT:\s*(.+)/
204
204
  redirect=true
205
205
  $1
206
- when nil ; '_self'
207
206
  else ; params[:success]
208
207
  end
209
208
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wagn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.2
4
+ version: 1.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-08-15 00:00:00.000000000 Z
14
+ date: 2015-08-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 1.16.2
36
+ version: 1.16.3
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.16.2
43
+ version: 1.16.3
44
44
  description: a wiki approach to stuctured data, dynamic interaction, and web design
45
45
  email:
46
46
  - info@wagn.org
@@ -797,3 +797,4 @@ test_files:
797
797
  - test/script/run_engine_deck.sh
798
798
  - test/script/run_mig.sh
799
799
  - test/test_helper.rb
800
+ has_rdoc: