Sha256: 723af34f88c34349233ecdee6c0e06cd11cba02ffa7dba1df82fff39525c3f08
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
module <%= config[:gem_class] %> module ActiveRecord def self.included base base.extend ClassMethods end module ClassMethods # TODO - Rename the method name to your liking. def is_<%= config[:gem_name] %>_enhanced options = {} self.send :include, InstanceMethods # Default Options class_inheritable_reader :<%= config[:gem_name] %>_options write_inheritable_attribute :<%= config[:gem_name] %>_options, options end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-0.4.0 | lib/gemsmith/templates/lib/gem/active_record/class_methods.rb.tmp |