inline_forms 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,13 +79,12 @@ module InlineFormsHelper
79
79
  :remote => true)
80
80
  out << "<div style='clear: both;'></div>"
81
81
  out << "</li>"
82
- ""
83
82
  if cancan_enabled?
84
- if can?(:create, model)
83
+ if can? :create, model.to_s.pluralize.underscore.to_sym
85
84
  if parent_class.nil?
86
85
  raw out
87
86
  else
88
- raw out if can?(:update, parent_class.find(parent_id))
87
+ raw out if can? :update, parent_class.find(parent_id).to_s.underscore.to_sym
89
88
  end
90
89
  end
91
90
  else
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.5.8"
3
+ VERSION = "1.5.9"
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.5.8
4
+ version: 1.5.9
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-09-19 00:00:00.000000000 Z
12
+ date: 2012-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm
@@ -323,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
323
  version: '0'
324
324
  requirements: []
325
325
  rubyforge_project: inline_forms
326
- rubygems_version: 1.8.23
326
+ rubygems_version: 1.8.24
327
327
  signing_key:
328
328
  specification_version: 3
329
329
  summary: Inline editing of forms.