Permalink
Browse files

Fix class_attribute regression with older version of Rails.

  • Loading branch information...
1 parent 5f6c7fe commit 11bcd7fc7f9dfebc11c4df17a8e36d668da038af @spikex committed Jul 26, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/strongbox.rb
View
6 lib/strongbox.rb
@@ -5,7 +5,7 @@
module Strongbox
- VERSION = "0.4.7"
+ VERSION = "0.4.8"
RSA_PKCS1_PADDING = OpenSSL::PKey::RSA::PKCS1_PADDING
RSA_SSLV23_PADDING = OpenSSL::PKey::RSA::SSLV23_PADDING
@@ -26,7 +26,9 @@ def options
def included base #:nodoc:
base.extend ClassMethods
- base.class_attribute :lock_options
+ if base.respond_to?(:class_attribute)
+ base.class_attribute :lock_options
+ end
end
end

0 comments on commit 11bcd7f

Please sign in to comment.