Module: FlowtimeRails

Defined in:
lib/flowtime-rails.rb

Defined Under Namespace

Classes: FrameworkNotFound

Class Method Summary collapse

Class Method Details

.load!Object

Inspired by Kaminari



7
8
9
10
11
12
13
14
15
# File 'lib/flowtime-rails.rb', line 7

def self.load!
  if asset_pipeline?
    register_rails_engine
  elsif middleman?
    # There's nothing to do for MiddleMan, it just checks for vendor/assets
  else
    raise FlowtimeRails::FrameworkNotFound, "flowtime-rails requires Rails > 3.1"
  end
end