module Fdbq::Rails
Constants
- VERSION
Public Class Methods
controller_parent()
click to toggle source
# File lib/fdbq/rails.rb, line 9 def self.controller_parent if latest? 'ApplicationController' else 'ActionController::Base' end end
latest?()
click to toggle source
# File lib/fdbq/rails.rb, line 25 def self.latest? ::Rails.version.to_i >= 5 end
model_parent()
click to toggle source
# File lib/fdbq/rails.rb, line 17 def self.model_parent if latest? 'ApplicationRecord' else 'ActiveRecord::Base' end end