lib/micro_sessions/controller.rb in micro_sessions-0.1.1 vs lib/micro_sessions/controller.rb in micro_sessions-0.2.0
- old
+ new
@@ -11,11 +11,11 @@
options[:key] ||= "_micro_sessions"
options[:param_type] ||= :hash
options[:length] ||= 10
options[:counter] ||= 1
- class_inheritable_accessor :micro_session_options
+ class_attribute :micro_session_options
self.micro_session_options = options
class_eval do
def micro_session
@micro_session ||= MicroSessions::MicroSession.new(self)
@@ -25,6 +25,6 @@
helper_method :micro_session_options
end
end
end
end
-end
\ No newline at end of file
+end