Sha256: 33baab28e562ecb7fa0df54372bc0d3e517e50741ddf2183846e7df1d412c3e4

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

case Rails::VERSION::MAJOR
when 5
  if Bizside.config.user_agent.use_variant?
    load File.expand_path(File.join('action_view', 'use_variant.rb'), __dir__)
  else
    load File.expand_path(File.join('action_view', 'action_view_4.rb'), __dir__)
  end
when 6
  if Bizside.config.user_agent.use_variant?
    load File.expand_path(File.join('action_view', 'use_variant.rb'), __dir__)
  else
    load File.expand_path(File.join('action_view', 'action_view_6.rb'), __dir__)
  end
else
  raise "Rails#{Rails::VERSION::MAJOR} はサポートしていません。"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bizside-2.2.3 lib/bizside/user_agent/action_view.rb
bizside-2.2.2 lib/bizside/user_agent/action_view.rb
bizside-2.2.1 lib/bizside/user_agent/action_view.rb
bizside-2.2.0 lib/bizside/user_agent/action_view.rb