Sha256: a62deb7e0d8b351458aef3fe169e5373f752025e83172f418b7acb1be5cc25b4

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

module <%= config[:gem_class] %>
  module ActionController
    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/action_controller/class_methods.rb.tmp