Last active
August 29, 2015 14:15
-
-
Save mikecmpbll/ee7210373bff838ed73d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GenericLicence < ActiveRecord::Base | |
self.abstract_class = true | |
# blah blah blah | |
end | |
class FooLicence < GenericLicence | |
end | |
class BarLicence < GenericLicence | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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