Sha256: 60698bc1f92b2ada3846cd5801a068db81f25e17049b7c66c6071a5711eead49

Contents?: true

Size: 994 Bytes

Versions: 1

Compression:

Stored size: 994 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 'sugar-high/array'

require 'file_mutate'

File.file_mutate :all

require 'rails_assist/namespaces'

module RailsAssist
  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 'rails_assist/app'
require 'rails_assist/directory'
require 'rails_assist/file'
require 'rails_assist/files'
require 'rails_assist/artifact'
require 'rails_assist/macro'


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_assist-0.5.2 lib/rails_assist.rb