Sha256: c9601ea520df5f3c562a24541de46e3915352c26b36446b156d7f08eb246babb
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
Contents
module PhcdevworksCore module PhcdevworksPluginsHelper # PHCDevworks - Accounts - Add Admin Only Filter def phcdevworks_accounts_admin_only unless current_user && current_user.admin? redirect_to main_app.root_path, :flash => { :error => "Sorry Access Denied. Adminisistration Access Required!" } end end # PHCDevworks - Accounts - Who Dunnit def user_for_paper_trail current_user ? current_user.username : "Public user" end # PHCDevworks - Members - Grab Member Information def phcmembers_get_member_profile_info @members_profile_info = Phcdevworksmembers::Member::Profile.find(params[:profile_id]) end # PHCDevworks - RealEstate - All Listings def phcdevworks_real_listings_all @property_real_listings_all = Phcdevworksrealestate::Property::Listing.all end # PHCDevworks - RealEstate - Resolve Layouts def resolve_property_listing_layouts case action_name when "new", "create" "application" when "index" "phcdevworks_real_estate/property_list" else "application" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems