crudify 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,7 +62,7 @@ module Crudify
62
62
  unless request.xhr?
63
63
  if params[:commit].match(/continue/)
64
64
  if params[:action] == 'create'
65
- redirect_to request.referer.sub('new', "#{what.to_param}/edit")
65
+ redirect_to request.referer.sub('new', "#{@what.to_param}/edit")
66
66
  else
67
67
  redirect_to request.referer
68
68
  end
@@ -109,7 +109,7 @@ module Crudify
109
109
  unless request.xhr?
110
110
  render :action => request.post? ? 'new' : 'edit'
111
111
  else
112
- flash[:error] = [flash[:error], what.errors.collect{|key,value| "#{key} #{value}"}.join("<br/>")]
112
+ flash[:error] = [flash[:error], @what.errors.collect{|key,value| "#{key} #{value}"}.join("<br/>")]
113
113
  render :partial => "/shared/message"
114
114
  end
115
115
  end
@@ -1,3 +1,3 @@
1
1
  module Crudify
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: crudify
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Spencer Steffen