Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNerian <siotopo@gmail.com>2015-11-20 18:32:17 +0300
committerNerian <siotopo@gmail.com>2015-11-20 18:32:17 +0300
commit0050b30394ae07b9130e0de30fa1bc7be600ec40 (patch)
treee6836df730a023a7fd610b18b48a56cffc1acc18 /lib
parent289d93f77336bc8b78e6328eea69f558c144e5bd (diff)
Add lotus support
Diffstat (limited to 'lib')
-rw-r--r--lib/bootstrap.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/bootstrap.rb b/lib/bootstrap.rb
index 3f49538..667a30e 100644
--- a/lib/bootstrap.rb
+++ b/lib/bootstrap.rb
@@ -7,6 +7,8 @@ module Bootstrap
if rails?
register_rails_engine
+ elsif lotus?
+ register_lotus
elsif sprockets?
register_sprockets
end
@@ -44,6 +46,10 @@ module Bootstrap
defined?(::Rails)
end
+ def lotus?
+ defined?(::Lotus)
+ end
+
private
def configure_sass
@@ -70,6 +76,10 @@ module Bootstrap
Sprockets.append_path(stylesheets_path)
Sprockets.append_path(javascripts_path)
end
+
+ def register_lotus
+ Lotus::Assets.sources << assets_path
+ end
end
end