This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Insert into Rails' test_helper.rb or wherever else you place your test helpers | |
# Can be used like so: | |
# assert permits? :show?, User.new, Record.new | |
def permits?(action, user, record) | |
policy = "#{record.class.name}Policy".constantize.new user, record | |
policy.send action | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header:not(div) { | |
background: -moz-linear-gradient(top, #275983 0%, #1c3e5d 100%) !important; | |
background: -webkit-linear-gradient(top, #275983 0%,#1c3e5d 100%) !important; | |
background: linear-gradient(to bottom, #275983 0%,#1c3e5d 100%) !important; | |
} | |
.v-align #header { background: none } | |
.primary { | |
border-radius: 4px !important; |