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

lotus / controller / 20
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v0.5.1
DEFAULT BRANCH: master
Ran 29 Apr 2014 02:25PM UTC
Jobs 3
Files 16
Run time 1min
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

pending completion
20

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

8 of 8 new or added lines in 1 file covered. (100.0%)

286 of 286 relevant lines covered (100.0%)

131.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20.1 (2.0.0) 29 Apr 2014 02:27PM UTC 0
100.0
Travis Job 20.1
2 20.2 (2.1.0) 29 Apr 2014 02:25PM UTC 0
100.0
Travis Job 20.2
3 20.3 (2.1.1) 29 Apr 2014 02:25PM UTC 0
100.0
Travis Job 20.3
Source Files on build 20
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #20
  • 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