Sha256: f13850899f743c8146ced8f67dbb346dfce4adc8f97096029f7b3c1e504ee946
Contents?: true
Size: 688 Bytes
Versions: 7
Compression:
Stored size: 688 Bytes
Contents
class Store::MembershipsController < Store::StoreController def show membership_type = MembershipType.sales_valid.find(params[:id]) @membership_types = [membership_type] @membership_kit = MembershipKit.where(:organization_id => store_organization.id).first render :index rescue ActiveRecord::RecordNotFound raise ActionController::RoutingError.new("Not Found") end def index render :nothing => true unless store_organization.can? :access, :membership @membership_types = store_organization.membership_types.storefront.sales_valid.order('price desc') @membership_kit = MembershipKit.where(:organization_id => store_organization.id).first end end
Version data entries
7 entries across 7 versions & 1 rubygems