Module: RailsAssist

Defined in:
lib/rails_assist.rb,
lib/rails_assist/app.rb,
lib/rails_assist/file.rb,
lib/rails_assist/files.rb,
lib/rails_assist/macro.rb,
lib/rails_assist/directory.rb

Defined Under Namespace

Modules: App, Artifact, Directory, File, Files, UseMacro

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debug_onObject

Returns the value of attribute debug_on.



36
37
38
# File 'lib/rails_assist.rb', line 36

def debug_on
  @debug_on
end

Class Method Details

.artifactsObject



19
20
21
# File 'lib/rails_assist.rb', line 19

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

.specials(type = nil) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/rails_assist.rb', line 23

def self.specials type=nil
  case type
  when :config
    [:initializer, :locale, :config]
  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