Sha256: 535dd72baab6c7221da8e7355ed44728fd084d332ec82cff5605fb6ce8f13d0c
Contents?: true
Size: 1.13 KB
Versions: 22
Compression:
Stored size: 1.13 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 @perty_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
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_core-0.4.0 | app/helpers/phcdevworks_core/phcdevworks_plugins_helper.rb |
phcdevworks_core-0.3.0 | app/helpers/phcdevworks_core/phcdevworks_plugins_helper.rb |