Module: Rails3::Assist

Defined in:
lib/rails3_assist/file.rb,
lib/rails3_assist/namespaces.rb,
lib/rails3_assist/directory.rb,
lib/rails3_assist/files.rb,
lib/rails3_assist/app.rb,
lib/rails3_assist.rb

Overview

require ‘sugar-high/file’

Defined Under Namespace

Modules: App, Artifact, Directory, File, Files

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debug_onObject

Returns the value of attribute debug_on.



31
32
33
# File 'lib/rails3_assist.rb', line 31

def debug_on
  @debug_on
end

Class Method Details

.artifactsObject



14
15
16
# File 'lib/rails3_assist.rb', line 14

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

.specials(type = nil) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/rails3_assist.rb', line 18

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