Sha256: d6d5e4064f5dc841d55ac496c9ba86d4bdbaa64623b323d5fc0bc4a14d320c85
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
# Dependencies require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "version.rb" <% if config[:rails] %> require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "active_record", "class_methods.rb" require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "active_record", "instance_methods.rb" require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_view", "instance_methods.rb" require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_controller", "class_methods.rb" require File.join File.dirname(__FILE__), "<%= config[:gem_name] %>", "action_controller", "instance_methods.rb" <% end %> # Namespace module <%= config[:gem_class] %> # Placeholder. end <% if config[:rails] %> # Rails Enhancements if defined? Rails # Model if defined? ActiveRecord ActiveRecord::Base.send :include, <%= config[:gem_class] %>::ActiveRecord end # View if defined? ActionView ActionView::Base.send :include, <%= config[:gem_class] %>::InstanceMethods end # Controller if defined? ActionController ActionController::Base.send :include, <%= config[:gem_class] %>::ActionController end end <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-0.3.0 | lib/gemsmith/templates/lib/gem.rb.tmp |
gemsmith-0.2.0 | lib/gemsmith/templates/lib/gem.rb.tmp |