Module: Chartkick::Remote

Extended by:
ActiveSupport::Concern
Defined in:
lib/chartkick/remote/version.rb,
lib/chartkick/remote/remote.rb,
lib/chartkick/remote/helper.rb,
lib/chartkick/remote/engine.rb

Defined Under Namespace

Modules: ClassMethods, Helper, Responder Classes: Engine

Constant Summary collapse

VERSION =
"1.3.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#chartkick_optionsObject

Returns the value of attribute chartkick_options


4
5
6
# File 'lib/chartkick/remote/remote.rb', line 4

def chartkick_options
  @chartkick_options
end

#chartkick_remote_blocksObject

Returns the value of attribute chartkick_remote_blocks


3
4
5
# File 'lib/chartkick/remote/remote.rb', line 3

def chartkick_remote_blocks
  @chartkick_remote_blocks
end

Instance Method Details

#default_renderObject


19
20
21
22
23
24
25
# File 'lib/chartkick/remote/remote.rb', line 19

def default_render(*)
  if params[:_chartkick_remote_chart_id] && !params[:_chartkick_remote_standalone]
    respond_with nil
  else
    super
  end
end