Sha256: 8b8a0a1cc2034fccac6d761a66fb6750175b466dcce7349358b734dee773b789
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
module TmsBridge module ModelSupport def published_attribute_names _attributes_names = self.column_names - %w{id created_at updated_at} _attributes_names+=self.attribute_aliases.keys _attributes_names+=self.monetized_attributes.keys return _attributes_names.compact.map(&:to_s).uniq end end end ActiveRecord::Base.send(:extend, TmsBridge::ModelSupport)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tms_bridge-0.3.0 | lib/tms_bridge/model_support.rb |