refinerycms-contacts 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ module Refinery
2
2
  module Contacts
3
3
  class Contact < Refinery::Core::BaseModel
4
4
  has_many :mails
5
+ default_scope order("position DESC")
5
6
 
6
7
  accepts_nested_attributes_for :mails, :allow_destroy => true
7
8
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  <div class="field ">
10
10
  <%= f.label :recipient_id %>
11
- <%= f.collection_select :recipient_id, @page.mails.obfuscated, :id, :mail, {:prompt=> true} %>
11
+ <%= f.collection_select :recipient_id, @page.mails.obfuscated, :id, :mail, { :prompt=> ((@page.mails.length > 1) ? true : false) } %>
12
12
  </div>
13
13
 
14
14
 
data/changelog.md CHANGED
@@ -1,5 +1,8 @@
1
+ ## 0.1.2 [4 January 2013]
2
+ * conditional prompt + default scope
3
+
1
4
  ## 0.1.1 [22 December 2012]
2
5
  * add email obfuscation in selectbox
3
6
 
4
7
  ## 0.1.0 [21 December 2012]
5
- * initial commit
8
+ * initial commit
@@ -3,7 +3,7 @@ module Refinery
3
3
  class Version
4
4
  @major = 0
5
5
  @minor = 1
6
- @tiny = '1'
6
+ @tiny = '2'
7
7
 
8
8
  class << self
9
9
  attr_reader :major, :minor, :tiny
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: refinerycms-contacts
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Martin Markech
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-22 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime