class DelegateCached::ModelData

Attributes

association[R]
column[R]
model[R]
reflection[R]

Public Class Methods

new(model, column, association, reflection) click to toggle source
# File lib/delegate_cached/model_data.rb, line 5
def initialize(model, column, association, reflection)
  @model = model
  @column = column
  @association = association
  @reflection = reflection
end

Public Instance Methods

plural_underscored_model_name() click to toggle source
# File lib/delegate_cached/model_data.rb, line 12
def plural_underscored_model_name
  model.to_s.pluralize.underscore
end
underscored_model_name() click to toggle source
# File lib/delegate_cached/model_data.rb, line 16
def underscored_model_name
  model.to_s.underscore
end