acts_as_multipart_form 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  == unreleased changes
2
2
 
3
+ == 0.0.9
4
+
5
+ * Moved the code that declares the form subject an instance variable to earlier in the multipart form handler. We were running into issues where we could not set default values in the controller part actions because @form_subject was not yet available.
6
+
3
7
  == 0.0.8
4
8
 
5
9
  * Fixed a bug where the part would not be re-called if it failed validations
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "acts_as_multipart_form"
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremiah Hemphill", "Ethan Pemble"]
12
- s.date = "2012-03-20"
12
+ s.date = "2012-04-02"
13
13
  s.description = "Multipart forms using custom routes"
14
14
  s.email = "jeremiah@cloudspace.com"
15
15
  s.extra_rdoc_files = [
@@ -110,7 +110,7 @@ module ActsAsMultipartForm
110
110
  form_name = params[:action].to_sym
111
111
  form_subject_id = params[:id]
112
112
 
113
- form_subject = find_or_create_multipart_form_subject(form_name, form_subject_id)
113
+ @form_subject = find_or_create_multipart_form_subject(form_name, form_subject_id)
114
114
  params[:id] = form_subject.id
115
115
 
116
116
  in_progress_form = find_or_create_multipart_in_progress_form(form_name, form_subject)
@@ -151,7 +151,6 @@ module ActsAsMultipartForm
151
151
  # needs to be a string so that the view can read it
152
152
  @next_multipart_form_part = get_next_multipart_form_part(form_name, part).to_s
153
153
  @multipart_form_part = part.to_s
154
- @form_subject = form_subject
155
154
  @available_multipart_form_parts = get_available_multipart_form_parts(form_name, in_progress_form.last_completed_step)
156
155
  @multipart_form_path = (self.multipart_forms[form_name][:form_route] + "_path").to_sym
157
156
  @multipart_form_complete = in_progress_form.completed
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: acts_as_multipart_form
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.8
5
+ version: 0.0.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeremiah Hemphill
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-03-20 00:00:00 Z
14
+ date: 2012-04-02 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
258
258
  requirements:
259
259
  - - ">="
260
260
  - !ruby/object:Gem::Version
261
- hash: -888520653492341845
261
+ hash: 1066375678191657396
262
262
  segments:
263
263
  - 0
264
264
  version: "0"