mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-02-21 12:10:34 +09:00
13 lines
204 B
Ruby
13 lines
204 B
Ruby
module SetPlatform
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
helper_method :platform
|
|
end
|
|
|
|
private
|
|
def platform
|
|
@platform ||= ApplicationPlatform.new(request.user_agent)
|
|
end
|
|
end
|