Sha256: a4f30f7be12a04f65ac38e1a5d2a08952bc2f3e8171d2bc93c64e47a3edf2a00

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

module Cmor
  module Core
    module ApplicationHelper
      def bootstrap_paginate(objects, options = {})
        options.reverse_merge!(theme: 'twitter-bootstrap-3')

        paginate(objects, options)
      end

      # def mu(object, method)
      #   handler = object.send(method)
      #   erb_string = ::ERB.new(object[method.to_sym].to_s, 0).result(binding)
      #   handler.class.new(erb_string).to_html.html_safe
      # end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cmor_core-0.0.6.pre app/helpers/cmor/core/application_helper.rb
cmor_core-0.0.5.pre app/helpers/cmor/core/application_helper.rb
cmor_core-0.0.4.pre app/helpers/cmor/core/application_helper.rb
cmor_core-0.0.3.pre app/helpers/cmor/core/application_helper.rb
cmor_core-0.0.2.pre app/helpers/cmor/core/application_helper.rb
cmor_core-0.0.1.pre app/helpers/cmor/core/application_helper.rb