Sha256: 50dd1df4e6958b18e13864f9782e9bdf7228a8a4ded1e2cd5401407e0001e7d0

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 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
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemsmith-0.3.0 lib/gemsmith/templates/lib/gem/active_record/class_methods.rb.tmp
gemsmith-0.2.0 lib/gemsmith/templates/lib/gem/active_record/class_methods.rb.tmp