Sha256: 6892744685e4c7e2348fd565cfa84305e68c5add1bac92d1914effdfe3cd78fd

Contents?: true

Size: 899 Bytes

Versions: 11

Compression:

Stored size: 899 Bytes

Contents

require 'thor'
require 'require_all'
require 'fileutils'
require 'rake'
require 'active_support/inflector'

require 'sugar-high/alias'
require 'sugar-high/file'
require 'sugar-high/regexp'

require 'rails3_assist/namespaces'

module Rails3::Assist
  def self.artifacts
    [:observer, :controller, :helper, :mailer, :model, :migration, :permit]
  end

  def self.specials type=nil
    case type
    when :config
      [:initializer, :locale]
    when :public
      [:stylesheet, :javascript]
    else
      raise ArgumentError, "Unknown specials type #{type}. Specify :config or :public" if type && type != :all
      [:initializer, :locale] + [:stylesheet, :javascript]
    end
  end
  
  class << self
    attr_accessor :debug_on
  end
end

require 'rails3_assist/app'
require 'rails3_assist/directory'
require 'rails3_assist/file'
require 'rails3_assist/files'
require 'rails3_assist/artifact'


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails3_assist-0.3.7 lib/rails3_assist.rb
rails3_assist-0.3.6 lib/rails3_assist.rb
rails3_assist-0.3.5 lib/rails3_assist.rb
rails3_assist-0.3.4 lib/rails3_assist.rb
rails3_assist-0.3.3 lib/rails3_assist.rb
rails3_assist-0.3.2 lib/rails3_assist.rb
rails3_assist-0.3.1 lib/rails3_assist.rb
rails3_assist-0.3.0 lib/rails3_assist.rb
rails3_assist-0.2.13 lib/rails3_assist.rb
rails3_assist-0.2.12 lib/rails3_assist.rb
rails3_assist-0.2.11 lib/rails3_assist.rb