Sha256: d747c67efcadb1691d9b36b5068db30758a351df1300f4c327d0c12f282c6beb
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
require 'active_record' class Generic extend ActiveModel::Naming extend ActiveModel::Translation include ActiveModel::Validations include ActiveModel::Conversion attr_accessor :id, :some_attribute, :project_id def initialize(attributes = {}) self.id = attributes[:id] self.some_attribute = attributes[:some_attribute] self.project_id = attributes[:project_id] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_url_generator-0.1.0 | test/models/generic_class.rb |