Sha256: 720d7918d049b2c2d29bba141a128c6622669c4a6c8ac2550825b9a706301c67
Contents?: true
Size: 1011 Bytes
Versions: 1
Compression:
Stored size: 1011 Bytes
Contents
module Rails::Assist module BaseHelper def self.included(base) base.extend ClassMethods base.class_eval do include Rails::Assist::App include ::Thor::Actions end end protected def get_type options = {} case options when Hash raise ArgumentError, "No artifact type specified #{options}" if !options[:type] options[:type] when String, Symbol options.to_sym else raise ArgumentError, "Bad artifact type specified #{options}" end end def debug? Rails::Assist.debug_on end def debug msg puts msg if debug? end def set options, type options.merge!(:type => type) options end def orm_notify '' end def marker name, type, options={} return send :"#{type}_marker", name, options if type name.to_s.camelize end end end require_all File.dirname(__FILE__) + '/base'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails3_assist-0.2.2 | lib/rails3_assist/base.rb |