lib/active_remote/integration.rb in active_remote-1.8.1 vs lib/active_remote/integration.rb in active_remote-2.0.0.rc1

- old
+ new

@@ -1,18 +1,17 @@ module ActiveRemote module Integration - def self.included(klass) - klass.class_eval do - unless singleton_methods.include?(:cache_timestamp_format) - ## - # :singleton-method: - # Indicates the format used to generate the timestamp format in the cache key. - # This is +:number+, by default. - # - def self.cache_timestamp_format - :number - end + extend ActiveSupport::Concern + included do + unless singleton_methods.include?(:cache_timestamp_format) + ## + # :singleton-method: + # Indicates the format used to generate the timestamp format in the cache key. + # This is +:number+, by default. + # + def self.cache_timestamp_format + :number end end end ##