Module: Kickstart_rails
- Defined in:
- lib/kickstart_rails.rb,
lib/kickstart_rails/version.rb
Defined Under Namespace
Classes: Engine
Constant Summary collapse
- VERSION =
"3.1.2"
Instance Method Summary collapse
- #assets_path ⇒ Object
- #configure_sass ⇒ Object
- #gem_path ⇒ Object
- #javascripts_path ⇒ Object
- #stylesheets_path ⇒ Object
Instance Method Details
#assets_path ⇒ Object
14 15 16 |
# File 'lib/kickstart_rails.rb', line 14 def assets_path @assets_path ||= File.join gem_path, 'app/assets' end |
#configure_sass ⇒ Object
26 27 28 29 30 31 |
# File 'lib/kickstart_rails.rb', line 26 def configure_sass require 'sass' ::Sass.load_paths << stylesheets_path ::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max end |
#gem_path ⇒ Object
10 11 12 |
# File 'lib/kickstart_rails.rb', line 10 def gem_path @gem_path ||= File. '..', File.dirname(__FILE__) end |
#javascripts_path ⇒ Object
22 23 24 |
# File 'lib/kickstart_rails.rb', line 22 def javascripts_path File.join assets_path, 'javascripts' end |
#stylesheets_path ⇒ Object
18 19 20 |
# File 'lib/kickstart_rails.rb', line 18 def stylesheets_path File.join assets_path, 'stylesheets' end |