inline_forms 1.6.7 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -209,7 +209,7 @@ class InlineFormsController < ApplicationController
209
209
  @version = Version.find(params[:id])
210
210
  @version.reify.save!
211
211
  @object = @Klass.find(@version.item_id)
212
- authorize!(:revert, @object)
212
+ authorize!(:revert, @object) if cancan_enabled?
213
213
  respond_to do |format|
214
214
  format.js { render :close }
215
215
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.6.7"
3
+ VERSION = "1.6.8"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7
4
+ version: 1.6.8
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: 2012-12-04 00:00:00.000000000 Z
12
+ date: 2012-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm