refinerycms-inquiries 0.9.9 → 0.9.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/inquiry.rb +3 -3
- data/lib/gemspec.rb +1 -1
- data/refinerycms-inquiries.gemspec +1 -1
- metadata +3 -2
data/app/models/inquiry.rb
CHANGED
@@ -12,13 +12,13 @@ class Inquiry < ActiveRecord::Base
|
|
12
12
|
|
13
13
|
acts_as_indexed :fields => [:name, :email, :message, :phone]
|
14
14
|
|
15
|
-
|
15
|
+
default_scope :order => 'created_at DESC' # previously scope :newest
|
16
16
|
|
17
17
|
def self.latest(number = 7, include_spam = false)
|
18
18
|
unless include_spam
|
19
|
-
ham.
|
19
|
+
ham.limit(number)
|
20
20
|
else
|
21
|
-
|
21
|
+
limit(number)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
data/lib/gemspec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{refinerycms-inquiries}
|
3
|
-
s.version = %q{0.9.9}
|
3
|
+
s.version = %q{0.9.9.1}
|
4
4
|
s.date = %q{2010-10-13}
|
5
5
|
s.summary = %q{Inquiry handling functionality for the Refinery CMS project.}
|
6
6
|
s.description = %q{Inquiry handling functionality extracted from Refinery CMS to allow you to have a contact form and manage inquiries in the Refinery backend.}
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-inquiries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 33
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 9
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.9.9.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Resolve Digital
|