lib/amfetamine/config.rb in amfetamine-0.4.0 vs lib/amfetamine/config.rb in amfetamine-0.4.1
- old
+ new
@@ -43,10 +43,10 @@
end
def expiration_time
if defined?(Rails)
method = "expiration_time_for_#{ Rails.env }"
- return send(method) if defined?(method)
+ return send(method) if respond_to?(method)
end
default_expiration_time
end