Skip to content

Commit

Permalink
Add lotus support
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerian committed Nov 20, 2015
1 parent 289d93f commit 0050b30
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/bootstrap.rb
Expand Up @@ -7,6 +7,8 @@ def load!

if rails?
register_rails_engine
elsif lotus?
register_lotus
elsif sprockets?
register_sprockets
end
Expand Down Expand Up @@ -44,6 +46,10 @@ def rails?
defined?(::Rails)
end

def lotus?
defined?(::Lotus)
end

private

def configure_sass
Expand All @@ -70,6 +76,10 @@ def register_sprockets
Sprockets.append_path(stylesheets_path)
Sprockets.append_path(javascripts_path)
end

def register_lotus
Lotus::Assets.sources << assets_path
end
end
end

Expand Down

0 comments on commit 0050b30

Please sign in to comment.