esp-auth 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,7 @@ module EspAuth
41
41
  form.input :polymorphic_context, :as => :select,
42
42
  :collection => current_user.context_tree,
43
43
  :member_value => ->(c) { [c.class.model_name.underscore, c.id].join('_') },
44
- :member_label => ->(c) { (' ' * 2 * c.absolute_depth + c.title).html_safe },
44
+ :member_label => ->(c) { (' ' * 2 * c.absolute_depth + (c.respond_to?(:esp_title) ? c.esp_title : c.title)).html_safe },
45
45
  :include_blank => t('commons.not_selected'),
46
46
  :selected => form.object.respond_to?(:selected_context) ? form.object.selected_context : nil,
47
47
  :disabled => form.object.respond_to?(:disabled_contexts) ? form.object.disabled_contexts : []
@@ -1,3 +1,3 @@
1
1
  module EspAuth
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esp-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
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-08-22 00:00:00.000000000 Z
12
+ date: 2012-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ancestry
@@ -613,7 +613,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
613
613
  version: '0'
614
614
  segments:
615
615
  - 0
616
- hash: 3071153800673366189
616
+ hash: 3390534789971843
617
617
  required_rubygems_version: !ruby/object:Gem::Requirement
618
618
  none: false
619
619
  requirements:
@@ -622,7 +622,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
622
622
  version: '0'
623
623
  segments:
624
624
  - 0
625
- hash: 3071153800673366189
625
+ hash: 3390534789971843
626
626
  requirements: []
627
627
  rubyforge_project:
628
628
  rubygems_version: 1.8.24