class Generators::Base
Attributes
filters[R]
model[R]
options[R]
Public Class Methods
new(model, filters, options)
click to toggle source
# File lib/toschas/filterable/generators/base.rb, line 5 def initialize(model, filters, options) @model = model @filters = filters @options = options end
Public Instance Methods
generate()
click to toggle source
# File lib/toschas/filterable/generators/base.rb, line 11 def generate end
Private Instance Methods
range_types()
click to toggle source
# File lib/toschas/filterable/generators/base.rb, line 26 def range_types [:date, :datetime, :integer, :float, :decimal] end
relation()
click to toggle source
# File lib/toschas/filterable/generators/base.rb, line 22 def relation model end
table_loaded?()
click to toggle source
# File lib/toschas/filterable/generators/base.rb, line 16 def table_loaded? model.table_exists? rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid false end