Class: AnimateIt::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/animate_it/configuration.rb

Overview

Host-app-overridable configuration. Set via the initializer that bin/rails animate_it:install generates, or in any initializer:

AnimateIt.configure do |config|
config.mount_path = "/studio"
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
25
# File 'lib/animate_it/configuration.rb', line 22

def initialize
  @mount_path = "/animate_it"
  @render_stylesheets = []
end

Instance Attribute Details

#mount_pathObject

Returns the value of attribute mount_path.



9
10
11
# File 'lib/animate_it/configuration.rb', line 9

def mount_path
  @mount_path
end

#render_stylesheetsObject

Host-app stylesheets to load into every rendered frame/filmstrip . Compositions that re-use host partials (which expect the host's component CSS) list the bundles they need here, e.g.:

config.render_stylesheets = %w[application components/star-ratings]

Names are passed straight to stylesheet_link_tag, so they resolve through the host's asset pipeline. Default empty — a composition built from self-contained markup needs none.



20
21
22
# File 'lib/animate_it/configuration.rb', line 20

def render_stylesheets
  @render_stylesheets
end