Created
June 24, 2015 03:43
-
-
Save marcelloma/9604597a8e10f250366d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Partner | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
field :contact_first_name | |
field :contact_last_name | |
end |
This file contains hidden or 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
module Administration | |
class PartnerCell < BaseCell | |
property :contact_name | |
end | |
end |
This file contains hidden or 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
module Administration | |
class PartnersController < BaseController | |
respond_to :html | |
def index | |
authorize! :read, :partners | |
@partners = Partner.page(params[:page]) | |
respond_with @partners | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment