refinerycms-inquiries 0.9.9 → 0.9.9.1

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.
@@ -12,13 +12,13 @@ class Inquiry < ActiveRecord::Base
12
12
 
13
13
  acts_as_indexed :fields => [:name, :email, :message, :phone]
14
14
 
15
- scope :newest, :order => 'created_at DESC'
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.find(:all, :limit => number)
19
+ ham.limit(number)
20
20
  else
21
- newest.find(:all, :limit => number)
21
+ limit(number)
22
22
  end
23
23
  end
24
24
 
data/lib/gemspec.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- version = '0.9.9'
2
+ version = '0.9.9.1'
3
3
  raise "Could not get version so gemspec can not be built" if version.nil?
4
4
  files = Dir.glob("**/*").flatten.reject do |file|
5
5
  file =~ /\.gem$/
@@ -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: 41
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 9
10
- version: 0.9.9
10
+ - 1
11
+ version: 0.9.9.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Resolve Digital