Skip to content
Browse files

Handle an upcoming change in the RefinerySetting API

  • Loading branch information...
1 parent 33f3491 commit 3162cb77ee8cf47e1f0f2cd73d7fbbeb5128210c @parndt parndt committed Sep 8, 2010
Showing with 8 additions and 3 deletions.
  1. +6 −1 app/models/inquiry_setting.rb
  2. +1 −1 lib/gemspec.rb
  3. +1 −1 refinerycms-inquiries.gemspec
View
7 app/models/inquiry_setting.rb
@@ -12,7 +12,12 @@ def self.confirmation_subject
end
def self.confirmation_subject=(value)
- RefinerySetting[:inquiry_confirmation_subject] = value
+ # handles a change in Refinery API
+ if RefinerySetting.methods.map(&:to_sym).include?(:set)
+ RefinerySetting.set(:inquiry_confirmation_subject, value)
+ else
+ RefinerySetting[:inquiry_confirmation_subject] = value
+ end
end
def self.notification_recipients
View
2 lib/gemspec.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-version = '0.9.8.5'
+version = '0.9.8.6'
raise "Could not get version so gemspec can not be built" if version.nil?
files = Dir.glob("**/*").flatten.reject do |file|
file =~ /\.gem$/
View
2 refinerycms-inquiries.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{refinerycms-inquiries}
- s.version = %q{0.9.8.5}
+ s.version = %q{0.9.8.6}
s.date = %q{2010-09-08}
s.summary = %q{Inquiry handling functionality for the Refinery CMS project.}
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.}

0 comments on commit 3162cb7

Please sign in to comment.
Something went wrong with that request. Please try again.