Sha256: 88ec359bf2a30127b95b9583ea09cd501471f7a4f476a0fe5190ecff247f69b6

Contents?: true

Size: 257 Bytes

Versions: 12

Compression:

Stored size: 257 Bytes

Contents

module RailsScript
  module ToJavascript
    extend ActiveSupport::Concern

    included do
      before_action do
        @to_javascript = {}
      end
    end

    def to_javascript(variables = {})
      @to_javascript.merge!(variables)
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_script-2.0.4 lib/rails_script/to_javascript.rb
rails_script-2.0.3 lib/rails_script/to_javascript.rb
rails_script-2.0.2 lib/rails_script/to_javascript.rb
rails_script-2.0.1 lib/rails_script/to_javascript.rb
rails_script-2.0.0 lib/rails_script/to_javascript.rb
rails_script-1.0.0 lib/rails_script/to_javascript.rb
rails_script-0.7.0 lib/rails_script/to_javascript.rb
rails_script-0.6.1 lib/rails_script/to_javascript.rb
rails_script-0.6.0 lib/rails_script/to_javascript.rb
rails_script-0.5.0 lib/rails_script/to_javascript.rb
rails_script-0.4.1 lib/rails_script/to_javascript.rb
rails_script-0.4.0 lib/rails_script/to_javascript.rb