Class: SaplingController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/sapling/rails/controllers/sapling_controller.rb

Instance Method Summary collapse

Instance Method Details

#scriptObject



4
5
6
7
8
9
10
# File 'lib/sapling/rails/controllers/sapling_controller.rb', line 4

def script
  js = sapling.js_generator.generate(
    :features => sapling.features.keys,
    :active_features => sapling.active_features
  )
  render :text => js, :content_type => 'text/javascript'
end