Sha256: ab88e66a16f62ebf6294787ec653e4b16a74b9db9a23b87a040d3ae0eba07b1b

Contents?: true

Size: 948 Bytes

Versions: 7

Compression:

Stored size: 948 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 '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

7 entries across 7 versions & 1 rubygems

Version Path
rails_assist-0.5.1 lib/rails_assist.rb
rails_assist-0.5.0 lib/rails_assist.rb
rails_assist-0.4.4 lib/rails_assist.rb
rails_assist-0.4.3 lib/rails_assist.rb
rails_assist-0.4.2 lib/rails_assist.rb
rails_assist-0.4.1 lib/rails_assist.rb
rails_assist-0.4.0 lib/rails_assist.rb