Sha256: 67509785691e6c9f55a93ea04cbf3a3fb2861df0585e6bbb27eb53255d3b5bcd
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 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 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/action_controller/class_methods.rb.tmp |
gemsmith-0.2.0 | lib/gemsmith/templates/lib/gem/action_controller/class_methods.rb.tmp |