Sha256: c51ef295317fb9ca23de0921a0534fc37dfd7f143277fd76f8a578eb92235569

Contents?: true

Size: 331 Bytes

Versions: 29

Compression:

Stored size: 331 Bytes

Contents

module VideojsRails
  module ViewHelpers
    def videojs_rails(*options, &blk)
      default_options = {
        controls: true,
        preload: "auto"
      }
      options = default_options.merge(options.extract_options!)
      render partial: 'videojs_rails/videojs_rails', locals: { options: options }, &blk
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
videojs_rails-4.12.5 lib/videojs_rails/view_helpers.rb
videojs_rails-4.12.4 lib/videojs_rails/view_helpers.rb
videojs_rails-4.12.3 lib/videojs_rails/view_helpers.rb
videojs_rails-4.12.2 lib/videojs_rails/view_helpers.rb
videojs_rails-4.12.1 lib/videojs_rails/view_helpers.rb
videojs_rails-4.12.0 lib/videojs_rails/view_helpers.rb
videojs_rails-4.11.4 lib/videojs_rails/view_helpers.rb
videojs_rails-4.11.3 lib/videojs_rails/view_helpers.rb
videojs_rails-4.11.2 lib/videojs_rails/view_helpers.rb
videojs_rails-4.11.1 lib/videojs_rails/view_helpers.rb
videojs_rails-4.11.0 lib/videojs_rails/view_helpers.rb
videojs_rails-4.10.2 lib/videojs_rails/view_helpers.rb
videojs_rails-4.10.1 lib/videojs_rails/view_helpers.rb
videojs_rails-4.10.0 lib/videojs_rails/view_helpers.rb
videojs_rails-4.9.1 lib/videojs_rails/view_helpers.rb
videojs_rails-4.9.0 lib/videojs_rails/view_helpers.rb
videojs_rails-4.8.5 lib/videojs_rails/view_helpers.rb
videojs_rails-4.8.4 lib/videojs_rails/view_helpers.rb
videojs_rails-4.8.3 lib/videojs_rails/view_helpers.rb
videojs_rails-4.8.2 lib/videojs_rails/view_helpers.rb