Skip to content

Instantly share code, notes, and snippets.

@mikecmpbll
Last active August 29, 2015 14:15
Show Gist options
  • Save mikecmpbll/ee7210373bff838ed73d to your computer and use it in GitHub Desktop.
Save mikecmpbll/ee7210373bff838ed73d to your computer and use it in GitHub Desktop.
class GenericLicence < ActiveRecord::Base
self.abstract_class = true
# blah blah blah
end
class FooLicence < GenericLicence
end
class BarLicence < GenericLicence
end
module GenericLicence
extend ActiveSupport::Concern
# blah blah blah
end
class FooLicence < ActiveRecord::Base
include GenericLicence
end
class BarLicence < ActiveRecord::Base
include GenericLicence
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment