Sha256: ffe9e6e1e04a4846d869401571048dc07dc0d2e94914de32ae6bbcf6fc1e1c16
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
module <%= config[:gem_class] %> module ActiveRecord def self.included base base.extend ClassMethods end module ClassMethods # TODO - Rename this method 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.5.0 | lib/gemsmith/templates/lib/gem/active_record/class_methods.rb.tmp |