• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lotus / controller / 20 / 3
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v0.5.1
DEFAULT BRANCH: master
Ran 29 Apr 2014 02:26PM UTC
Files 16
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Apr 2014 02:22PM UTC coverage: 100.0%. First build
2.1.1

push

travis-ci

jodosha
Share behaviors between actions belonging to the same controller.

Example:
  require 'lotus/controller'

  module Authentication
    def self.included(base)
      base.class_eval do
        before :authenticate!
      end
    end

    private
    def authenticate!
      halt 401
    end
  end

  class DraftsController
    include Lotus::Controller

    share do
      include Authentication
      before :authenticate!
    end

    action 'Index' do
      def call(params)
        # ...
      end
    end

    action 'Show' do
      def call(params)
        # ...
      end
    end
  end

286 of 286 relevant lines covered (100.0%)

43.67 hits per line

Source Files on job 20.3 (2.1.1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20
  • Travis Job 20.3
  • 20653eb0 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc