Sha256: f4bda82cfd5bd0d1a59a3e2443345cb166eed4f8d97ad6205df05abb515bbcd5

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 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
      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.2.0 lib/tms_bridge/model_support.rb