Class: Rapid::App::Settings
- Inherits:
-
Object
- Object
- Rapid::App::Settings
- Includes:
- Settings
- Defined in:
- lib/rapid/app/settings.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.databases ⇒ Object
120 121 122 |
# File 'lib/rapid/app/settings.rb', line 120 def databases %w(sqlite3 mysql mongoid) end |
.timezones ⇒ Object
124 125 126 |
# File 'lib/rapid/app/settings.rb', line 124 def timezones ActiveSupport::TimeZone.all.collect {|z| z.name} end |
Instance Method Details
#module_name ⇒ Object
139 140 141 |
# File 'lib/rapid/app/settings.rb', line 139 def module_name name.camelize if name end |
#module_name=(name) ⇒ Object
143 144 145 146 |
# File 'lib/rapid/app/settings.rb', line 143 def module_name= name self.name = name ? name.underscore : nil name end |
#rails_all=(bool) ⇒ Object
152 153 154 155 156 157 158 159 160 |
# File 'lib/rapid/app/settings.rb', line 152 def rails_all= bool if bool self.database.active_record = true self.assets = true self.test.unit = true end bool end |
#rails_all? ⇒ Boolean
148 149 150 |
# File 'lib/rapid/app/settings.rb', line 148 def rails_all? database.active_record? && assets? && test.unit? end |