Module: ASModel::SequelHooks::BlobHack
- Defined in:
- backend/app/model/ASModel_sequel.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
145 146 147 148 149 150 151 |
# File 'backend/app/model/ASModel_sequel.rb', line 145 def self.extended(base) blob_columns = base.db_schema.select {|column, defn| defn[:type] == :blob}.keys base.instance_eval do @blob_columns_to_fix = (!blob_columns.empty? && DB.needs_blob_hack?) ? Array(blob_columns) : [] end end |
Instance Method Details
#blob_columns_to_fix ⇒ Object
153 154 155 |
# File 'backend/app/model/ASModel_sequel.rb', line 153 def blob_columns_to_fix @blob_columns_to_fix end |