Sha256: 0632cf1b04dee3c6520c791e3a2928b241d5a896bc9a1a0b24071e4ace6cba6f
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 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 -%> <%- 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] %>::ActionView end # Controller if defined? ActionController ActionController::Base.send :include, <%= config[:gem_class] %>::ActionController end end <%- else -%> # Namespace module <%= config[:gem_class] %> # TODO - Add code here. end <%- end -%>
Version data entries
4 entries across 4 versions & 1 rubygems