35 lines
389 B
Ruby
35 lines
389 B
Ruby
|
|
module IdCard
|
||
|
|
class PlansController < ApplicationController
|
||
|
|
|
||
|
|
# View Methods
|
||
|
|
def new
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
def create
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
def edit
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
def update
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
def destroy
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
# API Methods
|
||
|
|
|
||
|
|
def get_plan_benefits
|
||
|
|
@plan_benefits = IdCard::Plan.find(params[:id]).plan_benefits
|
||
|
|
render json: @plan_benefits.as_json
|
||
|
|
end
|
||
|
|
|
||
|
|
private
|
||
|
|
|
||
|
|
end
|
||
|
|
end
|